Skip to content

basalt / drives/src / readCookie

Function: readCookie() ​

> readCookie(request, name): string | undefined

Defined in: drives/src/routes.ts:595

Reads one cookie out of the request, without a cookie-parser dependency.

Parameters ​

request ​

HttpRequest

name ​

string

Returns ​

string | undefined

Released under the MIT License.