Creates a new HTTP client.
The base URL of the remote service.
Performs a DELETE request.
Optional
url: string | URLThe URL of the resource to fetch.
Optional
options: RequestInitThe request options.
The server response.
Performs a GET request.
Optional
url: string | URLThe URL of the resource to fetch.
Optional
options: RequestInitThe request options.
The server response.
Performs a PATCH request.
Optional
url: string | URLThe URL of the resource to fetch.
Optional
body: unknownThe request body.
Optional
options: RequestInitThe request options.
The server response.
Performs a POST request.
Optional
url: string | URLThe URL of the resource to fetch.
Optional
body: unknownThe request body.
Optional
options: RequestInitThe request options.
The server response.
Performs a PUT request.
Optional
url: string | URLThe URL of the resource to fetch.
Optional
body: unknownThe request body.
Optional
options: RequestInitThe request options.
The server response.
Performs HTTP requests.