FetchOptions
Value members
Concrete methods
Abort the fetch request if FetchStream is stopped.
Abort the fetch request if FetchStream is stopped.
By default, stopping the stream does not affect the underlying Fetch request, and toggling this setting does not really affect visible execution of the stream.
Aborting on stop might yield a marginal efficiency gain in certain scenarios.
Abort the Fetch request when abortStream
emits.
This is a wrapper for https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
Errors emitted by abortStream will be re-emitted by FetchStream.
Abort the Fetch request when abortStream
emits.
This is a wrapper for https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
Errors emitted by abortStream will be re-emitted by FetchStream.
Set headers, overriding previous values for the corresponding keys.
Set headers, overriding previous values for the corresponding keys.
- Value parameters:
- kvs
(key1 -> value1, key2 -> value2)
Append headers – this is like setting headers, but for those keys that accept multiple values, the provided value(s) will be added to the key without removing the previously set value.
Append headers – this is like setting headers, but for those keys that accept multiple values, the provided value(s) will be added to the key without removing the previously set value.
- Value parameters:
- kvs
(key1 -> value1, key2 -> value2)