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

Function html

tests/network_blocking.test.ts:74–78  ·  view source on GitHub ↗
(body: string)

Source from the content-addressed store, hash-verified

72 const received: string[] = [];
73 const html =
74 (body: string) => (req: IncomingMessage, res: ServerResponse) => {
75 received.push(req.url ?? '');
76 res.writeHead(200, {'content-type': 'text/html; charset=utf-8'});
77 res.end(`<html><body>${body}</body></html>`);
78 };
79 server.addRoute('/allowed.html', html('Allowed'));
80 server.addRoute('/blocked.html', html('Blocked'));
81 return {received};

Callers 1

setupBlockedPageFixtureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected