Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/drash/src/http/request.ts>DrashRequest#getCookie

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
method DrashRequest.prototype.getCookie
import { DrashRequest } from "https://deno.land/x/drash@v2.8.1/src/http/request.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