MCPcopy Create free account
hub / github.com/middleapi/orpc / toHttpPath

Function toHttpPath

packages/client/src/adapters/standard/utils.ts:6–8  ·  view source on GitHub ↗
(path: readonly string[])

Source from the content-addressed store, hash-verified

4import { COMMON_ORPC_ERROR_DEFS } from '../../error'
5
6export function toHttpPath(path: readonly string[]): HTTPPath {
7 return `/${path.map(encodeURIComponent).join('/')}`
8}
9
10export function toStandardHeaders(headers: Headers | StandardHeaders): StandardHeaders {
11 /**

Callers 10

utils.test.tsFile · 0.90
encodeMethod · 0.90
generateMethod · 0.90
initMethod · 0.90
matchMethod · 0.90
#encodeCompactMethod · 0.90
#encodeDetailedMethod · 0.90
initMethod · 0.90
matchMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected