MCPcopy Create free account
hub / github.com/tiann/hapi / buildUrl

Method buildUrl

web/src/api/client.ts:94–103  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

92 }
93
94 private buildUrl(path: string): string {
95 if (!this.baseUrl) {
96 return path
97 }
98 try {
99 return new URL(path, this.baseUrl).toString()
100 } catch {
101 return path
102 }
103 }
104
105 private async request<T>(
106 path: string,

Callers 5

requestMethod · 0.95
authenticateMethod · 0.95
bindMethod · 0.95
getGeneratedImageBlobMethod · 0.95
tryOnceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected