Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface SecureCookieMapOptions
Deprecated
Deprecated

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

import { type SecureCookieMapOptions } from "https://deno.land/std@0.211.0/http/unstable_cookie_map.ts";

Properties

optional
keys: KeyRing

Keys which will be used to validate and sign cookies. The key ring should implement the KeyRing interface.

optional
response: Headered | Headers

The Response or the headers that will be used with the response. When provided, Set-Cookie headers will be set in the headers when cookies are set or deleted in the map.

An alternative way to extract the headers is to pass the cookie map to the mergeHeaders function to merge various sources of the headers to be provided when creating or updating a response.

optional
secure: boolean = false

A flag that indicates if the request and response are being handled over a secure (e.g. HTTPS/TLS) connection.