MCPcopy Create free account
hub / github.com/coder/mux / getClientFacingProtocol

Function getClientFacingProtocol

src/node/orpc/server.ts:285–287  ·  view source on GitHub ↗
(req: OriginValidationRequest)

Source from the content-addressed store, hash-verified

283}
284
285function getClientFacingProtocol(req: OriginValidationRequest): "http" | "https" {
286 return getFirstForwardedProtocol(req) ?? inferProtocol(req);
287}
288
289function getExpectedProtocols(
290 req: OriginValidationRequest,

Callers 2

getExpectedProtocolsFunction · 0.85

Calls 2

inferProtocolFunction · 0.85

Tested by

no test coverage detected