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
Parameter | Type | Description |
---|---|---|
request | RequestUrlParam | string |
Returns:
Promise<string>