MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / handler

Function handler

host/tests/host.test.js:65–69  ·  view source on GitHub ↗
(route)

Source from the content-addressed store, hash-verified

63 const installMocks = async (c) => {
64 for (const m of c.http_mocks ?? []) {
65 const handler = (route) => route.fulfill({
66 status: m.status ?? 200,
67 contentType: m.contentType ?? "application/json",
68 body: m.body ?? "",
69 });
70 await page.route(m.url, handler);
71 httpMocks.push({ url: m.url, handler });
72 }

Callers 2

worker.jsFile · 0.85
createWorkerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected