Close the client. It will not be possible to send new requests afterwards.
Optional
options: { if timeout is 0, all ongoing requests will be cancelled immediately. If timeout is > 0 and there are ongoing requests, they will be cancelled after timeout milliseconds. If not specified, ongoing requests will be awaited for indefinitely before closing.
Optional
timeout?: numberSimilar to the global fetch function, but if configured so, with retry, timeout, circuit breaker and bulkhead capabilities. Unless the init.skipFailOnErrorCode flag is set, the promise will be rejected on status codes >= 400. This is different from standard fetch behaviour. Otherwise the API is the same.
Optional
init: RequestInit & RequestOptionsA convenience function to retrieve JSON data + headers. See fetch.
Optional
init: RequestInit & JsonRequestOptions
A fetch client with added resilience features.