Skip to main content
Module

x/cav/deps.ts>http.getCookies

A server framework for Deno
Go to Latest
function http.getCookies
import { http } from "https://deno.land/x/cav@0.0.21/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