RoutingApplicationRequest
An application request handled by Routing.
Constructors
Functions
Properties
An ApplicationCall instance this ApplicationRequest is attached to.
Provides access to headers for the current request. You can also get access to specific headers using dedicated extension functions, such as acceptEncoding, contentType, cacheControl, and so on.
Provides access to connection details such as a host name, port, scheme, etc. To get information about a request passed through an HTTP proxy or a load balancer, install the ForwardedHeaders/XForwardedHeader plugin and use the origin property.
Extensions
Get a request's Accept
header value.
Gets a request's Accept-Charset
header value.
Gets the Accept-Charset
header charsets sorted according to their qualities.
Gets a request's Accept-Encoding
header value.
Gets the Accept-Encoding
header encoding types sorted according to their qualities.
Gets the Accept
header content types sorted according to their qualities.
Gets a request's Accept-Language
header value.
Gets the Accept-Language
header languages sorted according to their qualities.
Get a request's Authorization
header value.
Gets a request's Cache-Control
header value.
Gets a request's charset.
Gets a request's Content-Length
header value.
Gets a request's content type or returns ContentType.Any
.
A document name is a substring after the last slash but before a query string.
Internal helper function to encode raw parameters. Should not be used directly.
Gets a request's host value without a port.
Gets a request HTTP method possibly overridden using the X-Http-Method-Override
header.
Gets a request's HTTP version.
Checks whether a request's body is chunk-encoded.
Checks whether a request body is multipart-encoded.
Get a request's Location
header value.
Represents request and connection parameters possibly overridden via https headers. By default, it fallbacks to ApplicationRequest.local
Get a request's URL path without a query string.
Gets a request's port extracted from the Host
header value.
Gets a request's query string or returns an empty string if missing.
Gets ranges parsed from a request's Range
header value.
Generates a string representing this ApplicationRequest suitable for logging
Gets a request's URI, including a query string.
Gets a request's User-Agent
header value.