MCPcopy Index your code
hub / github.com/callstack/agent-device / createDaemonProxyServer

Function createDaemonProxyServer

src/remote/daemon-proxy.ts:37–44  ·  view source on GitHub ↗
(options: DaemonProxyOptions)

Source from the content-addressed store, hash-verified

35const FORWARDED_RESPONSE_HEADERS = ['content-type', 'content-disposition', 'x-request-id'];
36
37export function createDaemonProxyServer(options: DaemonProxyOptions): http.Server {
38 const normalized = normalizeProxyOptions(options);
39 return http.createServer((req, res) => {
40 void handleProxyRequest(req, res, normalized).catch((error: unknown) => {
41 sendProxyError(res, error);
42 });
43 });
44}
45
46async function handleProxyRequest(
47 req: IncomingMessage,

Callers 3

startProxyFunction · 0.90

Calls 3

normalizeProxyOptionsFunction · 0.85
handleProxyRequestFunction · 0.85
sendProxyErrorFunction · 0.85

Tested by

no test coverage detected