Set the cookie header with empty value in the headers to delete it
Parse cookies of a header
Parse set-cookies of a header
Set the cookie header properly in the headers
Represents an HTTP Cookie.
The cookie's Domain attribute. Specifies those hosts to which the cookie will be sent.
Domain
The cookie's Expires attribute, either as an explicit date or UTC milliseconds.
Expires
The cookie's HTTPOnly attribute. If true, the cookie cannot be accessed via JavaScript.
HTTPOnly
true
The cookie's Max-Age attribute, in seconds. Must be a non-negative integer. A cookie with a maxAge of 0 expires immediately.
Max-Age
maxAge
0
Name of the cookie.
The cookie's Path attribute. A cookie with a path will only be included in the Cookie request header if the requested URL matches that path.
Path
Cookie
Allows servers to assert that a cookie ought not to be sent along with cross-site requests.
The cookie's Secure attribute. If true, the cookie will only be included in the Cookie request header if the connection uses SSL and HTTPS.
Secure
Additional key value pairs with the form "key=value"
Value of the cookie.
Please provide a reason for reporting this package. We will review your report and take appropriate action.
Please review the JSR usage policy before submitting a report.
Add Package
deno add jsr:@std/http
Import symbol
import * as mod from "@std/http/cookie";
Import directly with a jsr specifier
import * as mod from "jsr:@std/http/cookie";