Creates a new Impit
instance with the given options.
The options
parameter allows you to customize the behavior of the Impit instance.
If no options are provided, default settings will be used.
Optional
options: ImpitOptionsFetch a URL with the given options.
This method performs an HTTP request to the specified URL using the provided options. It returns a promise that resolves to an ImpitResponse object containing the response data.
This method is designed to be API-compatible with the Fetch API fetch
global method.
Optional
requestInit: RequestInit
The main class of the
impit
packageThis class is the primary interface for making HTTP requests. It provides methods to configure the Impit instance and to perform requests.
Example