std/http/cookie.ts

Deno standard library
Go to Latest
function getCookies
import { getCookies } from "https://deno.land/std@0.147.0/http/cookie.ts?s=getCookies";

Parse cookies of a header

Parameters

headers: Headers[src]

The headers instance to get cookies from

Returns

Record<string, string>[src]

Object with cookie names as keys