Skip to main content
Module

std/http/mod.ts>CookieMap

Deno standard library
Go to Latest
variable CookieMap
Deprecated
Deprecated

(will be removed after 0.210.0) Import from https://deno.land/std/crypto/unstable_cookie_map.ts instead.

Provides a way to manage cookies in a request and response on the server as a single iterable collection.

The methods and properties align to Map. When constructing a Request or Headers from the request need to be provided, as well as optionally the Response or Headers for the response can be provided. Alternatively the mergeHeaders function can be used to generate a final set of headers for sending in the response.

import { CookieMap } from "https://deno.land/std@0.207.0/http/mod.ts";