Represents the options you may use when using the different request types.
Add a middleware to be executed before or after every request.
'before' or 'after'
Middleware to add
void
Send a DELETE request to the given URL.
Type of the data to return
Fetched data (response body)
Send a GET request to the given URL.
Type of the data to return
Fetched data (response body)
Send a POST request to the given URL.
Type of the data to return
Fetched data (response body)
Send a PUT request to the given URL.
Type of the data to return
Fetched data (response body)
Remove a middleware from the list of middlewares. (it will look for it both in 'before' and 'after' middlewares)
Middleware to remove
removed middleware if it really existed
Send a request to the given URL using the given HTTP method.
Type of the data to return
Fetched data (response body)
Sets the CacheManager to use when using ttl in get requests. By default Fetcher will use an in-memory cache.
Cache manager to use
Generated using TypeDoc
Fetcher is a small library on top of native fetch API to make it easier working with network requests.