Zum Inhalt springen
Deutsch

serializeCookie

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

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.

string

string

CookieAttributes = {}

string