CookieAttributes
Ce contenu n’est pas encore disponible dans votre langue.
CookieAttributes =
object
Defined in: src/http/cookies.ts:14
Attributes for a Set-Cookie value.
Properties
Section titled “Properties”domain?
Section titled “domain?”
readonlyoptionaldomain?:string
Defined in: src/http/cookies.ts:17
expires?
Section titled “expires?”
readonlyoptionalexpires?:Date
Defined in: src/http/cookies.ts:16
httpOnly?
Section titled “httpOnly?”
readonlyoptionalhttpOnly?:boolean
Defined in: src/http/cookies.ts:20
maxAgeSeconds?
Section titled “maxAgeSeconds?”
readonlyoptionalmaxAgeSeconds?:number
Defined in: src/http/cookies.ts:15
readonlyoptionalpath?:string
Defined in: src/http/cookies.ts:18
sameSite?
Section titled “sameSite?”
readonlyoptionalsameSite?:"strict"|"lax"|"none"
Defined in: src/http/cookies.ts:21
secure?
Section titled “secure?”
readonlyoptionalsecure?:boolean
Defined in: src/http/cookies.ts:19
