HttpRequestInfo

data class HttpRequestInfo(request: ApplicationRequest)

Parameters

request

This is the raw ApplicationRequest provided by Ktor, the HTTP transport library used by Kweb. It can be used to read various information about the inbound HTTP request, however you should use properties of HttpRequestInfo directly instead if possible.

    Note that values in `ApplicationRequest` can change during a connection, see [issue #154])(https://github.com/kwebio/kweb-core/issues/154).

Constructors

HttpRequestInfo
Link copied to clipboard
fun HttpRequestInfo(request: ApplicationRequest)
This is the raw ApplicationRequest provided by Ktor, the HTTP transport library used by Kweb.

Properties

cookies
Link copied to clipboard
val cookies: RequestCookies
remoteHost
Link copied to clipboard
val remoteHost: String
request
Link copied to clipboard
val request: ApplicationRequest
This is the raw ApplicationRequest provided by Ktor, the HTTP transport library used by Kweb.
requestedUrl
Link copied to clipboard
val requestedUrl: String
userAgent
Link copied to clipboard
val userAgent: String?