Add middleware to the request pipeline
The middleware function to add to the pipeline
Make a generic HTTP request
The URL to make the request to
Request options including method, headers, body, etc.
Promise resolving to the response data
Make a GET request
The URL to make the GET request to
Request options (excluding method)
Promise resolving to the response data
Make a POST request
The URL to make the POST request to
Optional
data: unknownThe data to send in the request body
Request options (excluding method)
Promise resolving to the response data
Make a PUT request
The URL to make the PUT request to
Optional
data: unknownThe data to send in the request body
Request options (excluding method)
Promise resolving to the response data
Make a DELETE request
The URL to make the DELETE request to
Request options (excluding method)
Promise resolving to the response data
Make a PATCH request
The URL to make the PATCH request to
Optional
data: unknownThe data to send in the request body
Request options (excluding method)
Promise resolving to the response data
Get client statistics
Object containing client statistics and performance metrics
Reset client state
Generic API client with middleware, retry, rate limiting, and circuit breaker support