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

Function copyProxyResponseHeaders

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

Source from the content-addressed store, hash-verified

144}
145
146function copyProxyResponseHeaders(response: Response, res: ServerResponse): void {
147 for (const name of FORWARDED_RESPONSE_HEADERS) {
148 const value = response.headers.get(name);
149 if (value) res.setHeader(name, value);
150 }
151}
152
153function ensureProxyRequestId(req: IncomingMessage, res: ServerResponse): void {
154 if (!res.hasHeader('x-request-id')) {

Callers 1

sendProxyResponseFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…