Methods
addDefaultRejectCallback
- addDefaultRejectCallback(fn): void
Returns void
addDefaultResolveCallback
- addDefaultResolveCallback(fn): void
Returns void
addDefaultTimeoutCallback
- addDefaultTimeoutCallback(fn, durationMs): void
Parameters
fn: TimeoutFunction
durationMs: number
Returns void
close
- close(): void
Returns void
newRequest
- newRequest<T>(opts?): Request<null | T>
Returns Request<null | T>
A new request object
A factory which can create Request objects. Useful for adding "default" handlers to requests.