Ir al contenido
Español

parseCookies

Esta página aún no está disponible en tu idioma.

parseCookies(header): Readonly<Record<string, string>>

Defined in: src/http/cookies.ts:45

Parse a request Cookie header into a name→value map. First occurrence of a name wins (RFC 6265 §5.4 ordering); malformed pairs are skipped, never thrown; values are best-effort %XX-decoded (kept raw on failure) with one layer of surrounding double quotes stripped. At most MAX_COOKIE_PAIRS pairs are accepted.

string | undefined

Readonly<Record<string, string>>