Skip to main content
Module

x/cav/deps.ts>http.deleteCookie

A server framework for Deno
Go to Latest
function http.deleteCookie
import { http } from "https://deno.land/x/cav@0.0.21/deps.ts";
const { deleteCookie } = http;

Set the cookie header with empty value in the headers to delete it

Parameters

headers: Headers

The headers instance to delete the cookie from

name: string

Name of cookie

optional
attributes: { path?: string; domain?: string; }

Additional cookie attributes