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

x/oak_commons/cookie_map.ts>SecureCookieMapSetDeleteOptions

A set of APIs for handling HTTP and HTTPS requests with Deno 🐿️ 🦕
Very Popular
Go to Latest
interface SecureCookieMapSetDeleteOptions
import { type SecureCookieMapSetDeleteOptions } from "https://deno.land/x/oak_commons@0.13.0/cookie_map.ts";

Options which can be set when calling the .set() or .delete() method on a SecureCookieMap.

Properties

optional
domain: string

The domain to scope the cookie for.

optional
expires: Date

When the cookie expires.

optional
maxAge: number

Number of seconds until the cookie expires

optional
httpOnly: boolean

A flag that indicates if the cookie is valid over HTTP only.

optional
ignoreInsecure: boolean

Do not error when signing and validating cookies over an insecure connection.

optional
overwrite: boolean

Overwrite an existing value.

optional
path: string

The path the cookie is valid for.

optional
secure: boolean

Override the flag that was set when the instance was created.

optional
sameSite:
| "strict"
| "lax"
| "none"
| boolean

Set the same-site indicator for a cookie.

optional
signed: boolean

Override the default behavior of signing the cookie.