MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / json

Function json

tests/network_blocking.test.ts:29–36  ·  view source on GitHub ↗
(req: IncomingMessage, res: ServerResponse)

Source from the content-addressed store, hash-verified

27function setupServiceWorkerFixture(server: TestServer): {received: string[]} {
28 const received: string[] = [];
29 const json = (req: IncomingMessage, res: ServerResponse) => {
30 received.push(req.url ?? '');
31 res.writeHead(200, {
32 'content-type': 'application/json',
33 'cache-control': 'no-store',
34 });
35 res.end('{"secret":"BLOCKED-DATA"}');
36 };
37 server.addRoute('/blocked/data.json', json);
38 server.addRoute('/blocked/swdata.json', json);
39 server.addRoute('/sw.js', (req, res) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected