Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/levo/src/deps.ts>server.setCookie

Server side rendering with The Elm Architecture in Deno
Latest
function server.setCookie
import { server } from "https://deno.land/x/levo@v0.0.27/src/deps.ts";
const { setCookie } = server;

Set the cookie header properly in the Response

Parameters

res: { headers?: Headers; }

An object which has a headers property