Skip to main content
Module

std/http/cookie.ts>setCookie

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

Set the cookie header properly in the Response

Parameters

res: { headers?: Headers; }

An object which has a headers property