uriPrefix

val RequestConnectionPoint.uriPrefix: String

Builds the URI prefix (scheme, host, and port) for this RequestConnectionPoint.

For example, returns "https://example.com:443".

This is an extension property on RequestConnectionPoint.

For a request's call.request.origin, the prefix is client-supplied: the host and port come from the client's Host header and, when Ktor's XForwardedHeaders or ForwardedHeaders plugin is installed, the scheme, host and port come from the X-Forwarded-* or Forwarded headers the client sends. Do not use it to build absolute links that leave the request, such as those in emails (take the application's public URL from configuration instead), and escape it before placing it in HTML.