Skip to main content
Module

x/request_cookie_store/set-cookie.ts>parseCookieHeader

An implementation of the Cookie Store API for request handlers.
Latest
function parseCookieHeader
import { parseCookieHeader } from "https://deno.land/x/request_cookie_store@v0.6.0-pre.3/set-cookie.ts";

A not-so-strict parser for cookie headers.

  • Allows pretty much everything in the value, including =
  • Trims keys and values
  • Ignores when both name and value are empty (but either empty allowed)

For more on the state of allowed cookie characters, see https://stackoverflow.com/a/1969339/870615.

Parameters