std/http/mod.ts

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

Set the cookie header properly in the Response

Parameters

res: { headers?: Headers; }[src]

An object which has a headers property