UNPKG

@loopback/docs

Version:
23 lines (15 loc) 828 B
--- lang: en title: 'API docs: rest.requestcontext.requestedprotocol' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar permalink: /doc/en/lb4/apidocs.rest.requestcontext.requestedprotocol.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [RequestContext](./rest.requestcontext.md) &gt; [requestedProtocol](./rest.requestcontext.requestedprotocol.md) ## 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. <b>Signature:</b> ```typescript readonly requestedProtocol: string; ```