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

Function createHttpClient

src/cli/server.test.ts:86–92  ·  view source on GitHub ↗
(baseUrl: string)

Source from the content-addressed store, hash-verified

84// --- HTTP Client Factory ---
85
86function createHttpClient(baseUrl: string): RouterClient<AppRouter> {
87 const link = new HTTPRPCLink({
88 url: `${baseUrl}/orpc`,
89 });
90 // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion -- needed for tsgo typecheck
91 return createORPCClient(link) as RouterClient<AppRouter>;
92}
93
94// --- WebSocket Client Factory ---
95

Callers 1

server.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected