MCPcopy Create free account
hub / github.com/callstack/agent-device / pipeProxyResponseBody

Function pipeProxyResponseBody

src/remote/daemon-proxy.ts:234–240  ·  view source on GitHub ↗
(response: Response, res: ServerResponse)

Source from the content-addressed store, hash-verified

232}
233
234async function pipeProxyResponseBody(response: Response, res: ServerResponse): Promise<void> {
235 if (!response.body) {
236 res.end();
237 return;
238 }
239 await pipeline(Readable.fromWeb(response.body as Parameters<typeof Readable.fromWeb>[0]), res);
240}
241
242function normalizeProxyOptions(options: DaemonProxyOptions): Required<DaemonProxyOptions> {
243 const upstreamBaseUrl = normalizeBaseUrl(options.upstreamBaseUrl, 'upstreamBaseUrl');

Callers 1

sendProxyResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…