MCPcopy Create free account
hub / github.com/electric-sql/electric / handleRequest

Function handleRequest

packages/agents-runtime/src/create-handler.ts:531–535  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

529 }
530
531 const handleRequest = async (request: Request): Promise<Response | null> => {
532 const pathname = new URL(request.url).pathname
533 if (pathname !== webhookPath) return null
534 return handleWebhookRequest(request)
535 }
536
537 const registerTypes = async (): Promise<void> => {
538 const types = getRegisteredTypes()

Callers

nothing calls this directly

Calls 1

handleWebhookRequestFunction · 0.85

Tested by

no test coverage detected