isomorphic-fetch-improve
Improvements over isomorphic-fetch.
Installation
npm i isomorphic-fetch-improve -S
Usage
const fetch = const url = 'http://localhost:3000/test' // Send a request by the same task name again
Additional options
-
timeout
[Default:0
] Set timeout. -
retryMaxCount
[Default:Infinity
] Set retry max count, when an error occurred, such as refresh, lock screen. -
retryDelay
[Default:0
] Set delay milliseconds when retry. -
cancelableTaskName
[Default:null
] Set the task name, to avoid the response data is replaced by old request in the response period. -
auth
[Default:null
] Setuser
andpassword
for basic authentication (Apply to relative paths). -
forceMethod
[Default:null
] Set an original value to the request method.
License
MIT