0.4.0 • Published 3 years ago
@dueltech/fetch v0.4.0
fetch() extension
Extension of native fetch with:
- Retryable requests
- Request timeout
- Standalone HTTP utilities
options.extension
timeoutNumber | StringRequest timeout
retryObjectlimitNumberDefault: 1
methodsStringDefault: DELETE, GET, HEAD, PATCH, PUT
delayNumber | StringDefault: 100
response.extension
body()Infer and execute body parser based on
content-type