Ok, here is a request for naming… you know it’s ha...
# ktor
o
Ok, here is a request for naming… you know it’s hard 🙂 We are working on proxy support, so we will introduce
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.