Skip to main content
Module

x/drash/mod.ts>Request#getCookie

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
method Request.prototype.getCookie
import { Request } from "https://deno.land/x/drash@v2.7.0/mod.ts";

Get a cookie value by the name that is sent in with the request.

Parameters

name: string
  • The name of the cookie to retrieve

Returns

string

The cookie value associated with the cookie name or undefined if a cookie with that name doesn't exist