Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/http/mod.ts>setCookie

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

Set the cookie header properly in the Response

Parameters

res: { headers?: Headers; }

An object which has a headers property