Sign in

Type: IMonoCloudCookieRequest

Interface for reading cookies from an incoming request.

Methods

getAllCookies()

getAllCookies(): Promise<Map<string, string>>

Retrieves all cookies from the request.

Returns

Promise<Map<string, string>>


getCookie()

getCookie(name: string): Promise<string | undefined>

Retrieves a single cookie value by name.

Parameters

ParameterTypeDescription
namestringThe name of the cookie to retrieve.

Returns

Promise<string | undefined>

© 2024 MonoCloud. All rights reserved.