0.4.0 • Published 1 year ago
@dueltech/fetch v0.4.0
fetch() extension
Extension of native fetch with:
- Retryable requests
- Request timeout
- Standalone HTTP utilities
options.extension
timeout
Number | StringRequest timeout
retry
Objectlimit
NumberDefault: 1
methods
StringDefault: DELETE, GET, HEAD, PATCH, PUT
delay
Number | StringDefault: 100
response.extension
body()
Infer and execute body parser based on
content-type