MCPcopy Index your code
hub / github.com/coder/mux / getAppProxyBasePathFromRequestValue

Function getAppProxyBasePathFromRequestValue

src/node/orpc/server.ts:514–517  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

512// Combines pathname parsing + app-proxy prefix detection so request-value
513// shaped inputs (raw URLs, header values) can be classified in a single call.
514function getAppProxyBasePathFromRequestValue(value: string | null | undefined): string | null {
515 const pathname = parsePathnameFromRequestValue(value);
516 return pathname ? getAppProxyBasePathFromPathname(pathname) : null;
517}
518
519function getRequestPublicBasePath(
520 req: PublicBasePathRequest,

Callers 2

getRequestPublicBasePathFunction · 0.85

Tested by

no test coverage detected