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.101.0/http/mod.ts";

Set the cookie header properly in the Response

Parameters

res: { headers?: Headers; }

An object which has a headers property