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.61.0/http/mod.ts";

Parse the cookies of the Server Request

Parameters

req: { headers: Headers; }

An object which has a headers property