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

x/fsrouter/deps.ts>http.getCookies

A file system based router for Deno.
Go to Latest
function http.getCookies
import { http } from "https://deno.land/x/fsrouter@2.11.1/deps.ts";
const { getCookies } = http;

Parse cookies of a header

Parameters

headers: Headers

The headers instance to get cookies from

Returns

Record<string, string>

Object with cookie names as keys