UNPKG

@whatwg-node/cookie-store

Version:
12 lines (11 loc) 338 B
import { Cookie } from './types.cjs'; export interface ParseOptions { decode?: boolean; } /** * Parse a cookie header. * * Parse the given cookie header string into an object * The object has the various cookies as keys(names) => values */ export declare function parse(str: string, options?: ParseOptions): Map<string, Cookie>;