IQCookieOptions
@quik/http / IQCookieOptions
Interface: IQCookieOptions
Defined in: http/src/router/endpoint/types.ts:99
Cookie options accepted by HTTP context implementations.
Properties
domain?
optionaldomain?:string
Defined in: http/src/router/endpoint/types.ts:128
Set the cookie domain name.
encode?
optionalencode?: (val) =>string
Defined in: http/src/router/endpoint/types.ts:140
Encode the cookie value before writing it.
Parameters
val
string
Cookie value to encode
Returns
string
expires?
optionalexpires?:Date
Defined in: http/src/router/endpoint/types.ts:113
Set the expiry date of the cookie in GMT. If omitted, the adapter creates a session cookie.
httpOnly?
optionalhttpOnly?:boolean
Defined in: http/src/router/endpoint/types.ts:118
Mark the cookie as accessible only by the web server.
maxAge?
optionalmaxAge?:number
Defined in: http/src/router/endpoint/types.ts:103
Set the expiry time relative to the current time in milliseconds.
partitioned?
optionalpartitioned?:boolean
Defined in: http/src/router/endpoint/types.ts:159
Mark the cookie to use partitioned storage.
path?
optionalpath?:string
Defined in: http/src/router/endpoint/types.ts:123
Set the cookie path.
priority?
optionalpriority?:"low"|"medium"|"high"
Defined in: http/src/router/endpoint/types.ts:154
Value of the “Priority” Set-Cookie attribute.
Link
https://datatracker.ietf.org/doc/html/draft-west-cookie-priority-00#section-4.3
sameSite?
optionalsameSite?:boolean|"lax"|"strict"|"none"
Defined in: http/src/router/endpoint/types.ts:147
Value of the “SameSite” Set-Cookie attribute.
Link
https://tools.ietf.org/html/draft-ietf-httpbis-cookie-same-site-00#section-4.1.1.
secure?
optionalsecure?:boolean
Defined in: http/src/router/endpoint/types.ts:133
Mark the cookie as HTTPS only.
signed?
optionalsigned?:boolean
Defined in: http/src/router/endpoint/types.ts:108
Indicate if the cookie should be signed.