@loopback/docs
Version:
Documentation for LoopBack 4
25 lines (16 loc) • 914 B
Markdown
lang: en
title: 'API docs: rest.requestcontext.requestedbaseurl'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.rest.requestcontext.requestedbaseurl.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [RequestContext](./rest.requestcontext.md) > [requestedBaseUrl](./rest.requestcontext.requestedbaseurl.md)
## RequestContext.requestedBaseUrl property
Get the base URL used by the client to make the request. This URL contains the protocol, hostname, port and base path. The path of the invoked route and query string is not included.
Please note these values may be different from what we are observing at HTTP/TCP level, because reverse proxies like nginx are rewriting them.
<b>Signature:</b>
```typescript
readonly requestedBaseUrl: string;
```