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

Function ensureProxyRequestId

src/remote/daemon-proxy.ts:153–157  ·  view source on GitHub ↗
(req: IncomingMessage, res: ServerResponse)

Source from the content-addressed store, hash-verified

151}
152
153function ensureProxyRequestId(req: IncomingMessage, res: ServerResponse): void {
154 if (!res.hasHeader('x-request-id')) {
155 res.setHeader('x-request-id', resolveRequestId(req));
156 }
157}
158
159async function sendRewrittenUploadPreflightResponse(params: {
160 req: IncomingMessage;

Callers 1

sendProxyResponseFunction · 0.85

Calls 1

resolveRequestIdFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…