@whatwg-node/cookie-store
Version:
12 lines (11 loc) • 337 B
TypeScript
import { Cookie } from './types.js';
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>;