Page Contents

Home > @loopback/rest > RequestContext > requestedProtocol

RequestContext.requestedProtocol property

Get the protocol used by the client to make the request. Please note this protocol may be different from what we are observing at HTTP/TCP level, because reverse proxies like nginx or sidecars like Envoy are switching between protocols.

Signature:

get requestedProtocol(): string;