MCPcopy Create free account
hub / github.com/github/copilot-sdk / handler

Function handler

test/harness/connectProxy.test.ts:65–70  ·  view source on GitHub ↗
(req, res, targetHost)

Source from the content-addressed store, hash-verified

63 test("intercepts HTTPS requests to configured domains", async () => {
64 const requests: Array<{ host: string; url: string }> = [];
65 const handler: RequestHandler = (req, res, targetHost) => {
66 requests.push({ host: targetHost, url: req.url ?? "/" });
67 res.writeHead(200, { "content-type": "text/plain" });
68 res.end("mocked");
69 return true;
70 };
71
72 const proxy = new ConnectProxy(handler, {
73 interceptDomains: ["test.example.com"],

Calls 2

pushMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…