HttpStreamingClientService
Optional host capability for HTTP responses that must be consumed while they are still arriving — the transport requirement behind Mode 2 streaming over the network (for example server-sent events).
It is a separate service rather than a method on HttpClientService
because it is genuinely optional: a host that cannot stream simply omits it,
and providers report that as streamingAvailable: false in their dynamic
capabilities, which the route planner turns into an inspectable
streaming_unavailable rejection.
Methods
Section titled “Methods”stream()
Section titled “stream()”stream(
request,signal?):Promise<HttpStreamResponse>
Dispatches a normalized HTTP request and resolves once the response head is available, leaving the body to be consumed incrementally.
HttpRequest.timeoutMs bounds the wait for the response head only — the
time to first byte. It cannot bound total duration, since a stream is
open-ended by nature; use signal to stop a stream that runs too long.
Parameters
Section titled “Parameters”request
Section titled “request”Normalized HTTP request payload.
signal?
Section titled “signal?”Optional caller-driven cancellation. Aborting it must tear down the underlying connection and cause the body iterator to stop.
Returns
Section titled “Returns”Promise<HttpStreamResponse>
IndeRun — open-source AI execution for cross-platform apps. Built and maintained by Independo GmbH (opens in new tab), supported by netidee (opens in new tab).
MIT-licensed SDK · No SDK usage telemetry.
© 2025–2026 Independo GmbH