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

x/sinco/tests/deps.ts>Drash.Request#getCookie

Browser Automation and Testing Tool for Deno, written in full TypeScript
Latest
method Drash.Request.prototype.getCookie
import { Drash } from "https://deno.land/x/sinco@v4.1.0/tests/deps.ts";
const { Request } = Drash;

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