orangy
origin and local instead of just requestLine in ApplicationRequest. It will provide information about host, port, protocol and version, remote address, method and uri used to connect. When connection is direct, they will be identical. When connection is done via (reverse) proxy, local will describe connection to a ktor itself, while origin will describe connection from client to whatever it connected, using X-Forwarded-* and other headers.
Now the question. How to call the class of origin and local? It’s just data class similar to HttpRequestLine, but it’s obviously not a request line anymore.