@loopback/docs
Version:
Documentation for LoopBack 4
23 lines (15 loc) • 828 B
Markdown
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) > [@loopback/rest](./rest.md) > [RequestContext](./rest.requestcontext.md) > [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;
```