MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isStreamedBody

Function isStreamedBody

packages/core/sdk/src/hosted-http-client.ts:532–533  ·  view source on GitHub ↗
(init: RequestInit | undefined)

Source from the content-addressed store, hash-verified

530// every streamed upload in memory, and FetchHttpClient passes a ReadableStream
531// for every streamed body, so that cost lands on the common path.
532const isStreamedBody = (init: RequestInit | undefined): boolean =>
533 init?.body instanceof ReadableStream;
534
535// Every hop goes out through here, so this is the one place the transport's
536// requirements are met. `redirect: "manual"` is what makes the guard see each

Callers 2

withStreamingDuplexFunction · 0.85
guardFetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected