Fetcher
Index
Constructors
constructor
Parameters
baseURL: string
options: FetcherOptions = {}
Returns Fetcher
Properties
delete
get
head
options
patch
post
put
Methods
extends
Parameters
path: string
The path to extend the baseURL with
optionaloptions: FetcherOptions
The options to extend the current options with
Returns Fetcher
The new Fetcher instance
request
Make a request to the API using the Fetcher instance configuration
Type parameters
- T
Parameters
path: string
The path to make the request to
optionaloptions: FetcherRequestOptions
The options to use for the request
Returns Promise<T>
The response data
Create a new Fetcher instance with the same configuration