Module

std/http/cookie.ts

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

Set the cookie header properly in the headers

Parameters

headers: Headers

The headers instance to set the cookie to