Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/http/mod.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.147.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