Properties
Abstract removeHeader
removeHeader: (key: string) => void
Abstract sendHTMLResponse
sendHTMLResponse: (html: string) => void
Abstract sendJSONResponse
sendJSONResponse: (content: any) => void
Abstract setCookie
setCookie: (key: string, value: string, domain: undefined | string, secure: boolean, httpOnly: boolean, expires: number, path: string, sameSite: "strict" | "lax" | "none") => void
Type declaration
- (key: string, value: string, domain: undefined | string, secure: boolean, httpOnly: boolean, expires: number, path: string, sameSite: "strict" | "lax" | "none"): void
Parameters
key: string
value: string
domain: undefined | string
secure: boolean
httpOnly: boolean
expires: number
path: string
sameSite: "strict" | "lax" | "none"
Returns void
Abstract setHeader
setHeader: (key: string, value: string, allowDuplicateKey: boolean) => void
Type declaration
- (key: string, value: string, allowDuplicateKey: boolean): void
Parameters
key: string
value: string
allowDuplicateKey: boolean
Returns void
Abstract setStatusCode
setStatusCode: (statusCode: number) => void
Type declaration
- (statusCode: number): void
wrapperUsed
wrapperUsed: boolean