Connection

Top-level container class for views about a connection for some request.

You may wish to review Ktor docs about Forwarding Headers if you want to learn more about how the origin and local views can be different.

Constructors

Link copied to clipboard

Types

Link copied to clipboard
data class Details(val scheme: String, val version: String, val localAddress: String, val localHost: String, val localPort: Int, val remoteAddress: String, val remoteHost: String, val remotePort: Int, val serverHost: String, val serverPort: Int)

Details about a connection that carries a request.

Properties

Link copied to clipboard

Details about the request's connection at the point it was received by the server. This can be different from origin if the server is behind a proxy (that is, the request was intercepted and rerouted), at which point the connection details will be about the proxy, not the client.

Link copied to clipboard

Details about the request's connection point of origin (i.e. the client).