Module

std/http/mod.ts

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

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