interface IHttpClient

HTTP client interface for dependency injection Allows testing and different HTTP implementations

Methods

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

Fetch a resource from a URL

Usage

import { type IHttpClient } from ".";