std/http/mod.ts

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

Set the cookie header properly in the headers

Parameters

headers: Headers[src]

The headers instance to set the cookie to