Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/http/cookie_map.ts>CookieMap

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
variable CookieMap
Deprecated
Deprecated

(will be removed after 0.212.0) Use https://deno.land/std/http/cookie.ts instead.

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

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.

type

CookieMap_