const mixinafBedSheet::Request
afBedSheet::Request
An injectable const
version of WebReq.
This class is proxied and will always refer to the current web request.
- absUri
abstract Uri absUri()
The absolute request URI including the full authority and the query string.
@see web::WebReq.absUri
- form
Get the key/value pairs of the form data. The request content is read and parsed using sys::Uri.decodeQuery.
If the request content type is not "application/x-www-form-urlencoded" this method returns
null
.@see web::WebReq.form
- headers
Map of HTTP request headers. The map is readonly and case insensitive.
@see web::WebReq.headers
@see http://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Requests
- httpMethod
abstract Str httpMethod()
The HTTP request method in uppercase. Example: GET, POST, PUT.
@see web::WebReq.method
- httpVersion
abstract Version httpVersion()
The HTTP version of the request.
@see web::WebReq.version
- isXmlHttpRequest
abstract Bool isXmlHttpRequest()
Returns
true
if anXMLHttpRequest
, as specified by theX-Requested-With
HTTP header.- locales
abstract Locale[] locales()
The accepted locales for this request based on the "Accept-Language" HTTP header. List is sorted by preference, where
locales.first
is best, andlocales.last
is worst. This list is guaranteed to contain Locale("en").@see web::WebReq.locales
- modBase
abstract Uri modBase()
Base uri of the current WebMod
@see web::WebReq.modBase
- modRel
abstract Uri modRel()
The uri relative to BedSheetWebMod
@see web::WebReq.modRel
- remoteAddr
abstract IpAddr remoteAddr()
The IP host address of the client socket making this request.
- remotePort
abstract Int remotePort()
The IP port of the client socket making this request.
- uri
abstract Uri uri()