serializeCookie
이 콘텐츠는 아직 번역되지 않았습니다.
serializeCookie(
name,value,attrs?):string
Defined in: src/http/cookies.ts:73
Serialise one Set-Cookie value. THROWS on an invalid name, a value
containing an illegal character (header-injection guard), a
SameSite=None cookie that isn’t Secure, or a violated cookie-prefix
rule (__Secure- needs Secure; __Host- needs Secure + Path=/ + no
Domain). Value is emitted verbatim — pre-encode it yourself if needed.
Parameters
Section titled “Parameters”string
string
attrs?
Section titled “attrs?”CookieAttributes = {}
Returns
Section titled “Returns”string
