cookie hook functions

This commit is contained in:
Sebastian Frank 2021-08-17 13:26:39 +02:00
parent 9865126cab
commit f8e16879dd
Signed by: apairon
GPG Key ID: A0E05A8199CE3F57

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 {