Skip to main content
Module

std/http/mod.ts>setCookie

Deno standard library
Go to Latest
function setCookie
import { setCookie } from "https://deno.land/std@0.152.0/http/mod.ts";

Set the cookie header properly in the headers

Parameters

headers: Headers

The headers instance to set the cookie to