Skip to main content
Deno 2 is finally 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.62.0/http/cookie.ts";

Parse the cookies of the Server Request

Parameters

req: { headers: Headers; }

An object which has a headers property

Returns

Cookies