MCPcopy Create free account
hub / github.com/cloudflare/computer / requestPath

Function requestPath

packages/computerd/src/cli/computerd.ts:102–105  ·  view source on GitHub ↗
(request: IncomingMessage)

Source from the content-addressed store, hash-verified

100}
101
102function requestPath(request: IncomingMessage): string {
103 const url = new URL(request.url ?? "/", "http://localhost");
104 return url.pathname;
105}
106
107// Strip heartbeat events from a Runner stream before it reaches the
108// RPC layer. Heartbeats are a local observability signal only; the

Callers 1

createHTTPServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected