cookie hook functions
This commit is contained in:
parent
9865126cab
commit
f8e16879dd
22
index.d.ts
vendored
22
index.d.ts
vendored
@ -383,6 +383,28 @@ export interface HookContext extends GetHookData, GetHookGetOnlyData, PostHookDa
|
||||
* @param options options
|
||||
*/
|
||||
xmlParse(xml:string, options?: {}): any
|
||||
|
||||
/**
|
||||
* get cookie from http header
|
||||
*
|
||||
* @param name cookie name
|
||||
*/
|
||||
cookieGet(name: string): string
|
||||
|
||||
/**
|
||||
* set cookie via http header
|
||||
*
|
||||
* @param name cookie name
|
||||
* @param value cookie value
|
||||
* @param options cookie options
|
||||
*/
|
||||
cookieSet(name: string, value: string, options?:{
|
||||
maxAge?: number
|
||||
path?:string
|
||||
domain?:string
|
||||
secure?:boolean
|
||||
httpOnly?:boolean
|
||||
}): void
|
||||
}
|
||||
|
||||
export interface HookException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user