Native fetch wrapper with retryable requests, timeouts and utilities.
npm install fetch-extExtension of native fetch with:
* Retryable requests
* Request timeout
* Standalone HTTP utilities
options.extension* timeout number | string
Request timeout
* retry Object
- limit number
Default: 1
- methods string[] | false
Default: [DELETE, GET, HEAD, PATCH, PUT]
- delay number | string | resolver
Default: 100
* json any
Shortcut for sending JSON serialized data. Equivalent to:
```
{
headers: {
'content-type': 'application/json',
'accept': 'application/json',
},
body: JSON.stringify(value),
}
* body()
Infer and execute body parser based on content-type`