MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / requestPath

Function requestPath

apps/cloud/src/observability/error-logging.ts:39–45  ·  view source on GitHub ↗
(request: HttpServerRequest.HttpServerRequest)

Source from the content-addressed store, hash-verified

37};
38
39const requestPath = (request: HttpServerRequest.HttpServerRequest): string => {
40 if (URL.canParse(request.url, "http://executor.local")) {
41 return new URL(request.url, "http://executor.local").pathname;
42 }
43
44 return request.url.split("?")[0] ?? request.url;
45};
46
47export const logApiErrorCause = (
48 request: HttpServerRequest.HttpServerRequest,

Callers 1

logApiErrorCauseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected