request

request() function

Similar to fetch(), request a URL using HTTP/HTTPS, without any CORS restrictions. Returns the text value of the response.

Signature:

export function request(request: RequestUrlParam | string): Promise<string>;

Parameters

ParameterTypeDescription
requestRequestUrlParam | string

Returns:

Promise<string>