method IHttpClient.fetch
IHttpClient.fetch(
url: string,
options?: RequestInit,
): Promise<Response>

Fetch a resource from a URL

Parameters

url: string
  • The URL to fetch
optional
options: RequestInit
  • Fetch options

Return Type

Promise<Response>

Promise resolving to the Response

Usage

import { type IHttpClient } from ".";