Sign in

Type: MonoCloudRequest

Represents a request object that includes cookie handling capabilities.

Methods

getAllCookies()

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

Retrieves all cookies from the request.

Returns

Promise<Map<string, string>>

Inherited from

IMonoCloudCookieRequest.getAllCookies


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>

Inherited from

IMonoCloudCookieRequest.getCookie


getQuery()

getQuery(parameter: string): string | string[] | undefined

Retrieves a query parameter value by name.

Parameters

ParameterTypeDescription
parameterstringThe name of the query parameter to retrieve.

Returns

string | string[] | undefined


getRawRequest()

getRawRequest(): Promise<{ body: string | Record<string, string>; method: string; url: string; }>

Returns the raw request details including method, URL, and body.

Returns

Promise<{ body: string | Record<string, string>; method: string; url: string; }>

© 2024 MonoCloud. All rights reserved.