Class: FetchHttpClient
HTTP Client implementation using the Fetch API
Implements the IHttpClient interface providing HTTP operations with consistent response handling and JSON serialization.
Example
IHttpClient
Implements
Constructors
Constructor
FetchHttpClient
Returns
FetchHttpClient
Methods
delete()
T
Performs a DELETE request
Type Parameters
T
T = unknown
Parameters
url
string
options?
Returns
Promise<HttpResponse<T>>
Implementation of
get()
unknown
Performs a GET request
Type Parameters
T
T = unknown
Parameters
url
string
options?
Returns
Promise<HttpResponse<T>>
Implementation of
post()
string
Performs a POST request
Type Parameters
T
T = unknown
Parameters
url
string
body
unknown
options?
Returns
Promise<HttpResponse<T>>
Implementation of
put()
HttpRequestOptions
Performs a PUT request
Type Parameters
T
T = unknown
Parameters
url
string
body
unknown
options?
Returns
Promise<HttpResponse<T>>
Implementation of
Last updated on