MCPcopy
hub / github.com/coder/mux / buildHttpBaseUrl

Function buildHttpBaseUrl

src/node/services/serverService.ts:85–87  ·  view source on GitHub ↗
(host: string, port: number)

Source from the content-addressed store, hash-verified

83}
84
85function buildHttpBaseUrl(host: string, port: number): string {
86 return `http://${formatHostForUrl(host)}:${port}`;
87}
88
89function resolveAllowHttpOriginEnvFlag(): boolean {
90 const raw = process.env.MUX_SERVER_ALLOW_HTTP_ORIGIN;

Callers 1

computeNetworkBaseUrlsFunction · 0.85

Calls 1

formatHostForUrlFunction · 0.70

Tested by

no test coverage detected