Add a function which will be invoked for every request that is rejected.
The function to invoke. The first argument will be the Request object, the second will be the rejection argument.
Add a function which will be invoked for every request that is resolved.
The function to invoke. The first argument will be the Request object, the second will be the resolve argument.
Add a function which will be invoked for every request that has not been resolved or rejected within a certain amount of time.
The function to invoke. The first argument will be the Request object.
The number of milliseconds to wait for a resolution to the request.
Generate a new request.
Optional
opts: RequestOpts<T>The options to pass to the Request constructor, if any.
A new request object
A factory which can create Request objects. Useful for adding "default" handlers to requests.