Skip to main content
Module

x/drash/deps.ts>getCookies

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
function getCookies
import { getCookies } from "https://deno.land/x/drash@v2.7.0/deps.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