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

std/http/cookie.ts>getCookies

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function getCookies
import { getCookies } from "https://deno.land/std@0.164.0/http/cookie.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