const mixinafBedSheet::HttpRequest

afBedSheet::HttpRequest

An injectable const version of WebReq.

This class is proxied and will always refer to the current web request.

absUri

Source

abstract Uri absUri()

The absolute request URI including the full authority and the query string.

@see web::WebReq.absUri

cookies

Source

abstract Str:Str cookies()

Map of cookie values keyed by cookie name. The cookies map is readonly and case insensitive.

form

Source

abstract [Str:Str]? 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

Source

abstract HttpRequestHeaders 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

Source

abstract Str httpMethod()

The HTTP request method in uppercase. Example: GET, POST, PUT.

@see web::WebReq.method

httpVersion

Source

abstract Version httpVersion()

The HTTP version of the request.

@see web::WebReq.version

in

Source

abstract InStream in()

Get the stream to read request body. See WebUtil.makeContentInStream to check under which conditions request content is available. If request content is not available, then throw an exception.

If the client specified the "Expect: 100-continue" header, then the first access of the request input stream will automatically send the client a 100 Continue response.

@see web::WebReq.in

isXmlHttpRequest

Source

abstract Bool isXmlHttpRequest()

Returns true if an XMLHttpRequest, as specified by the X-Requested-With HTTP header.

locales

Source

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, and locales.last is worst. This list is guaranteed to contain Locale("en").

@see web::WebReq.locales

modBase

Source

abstract Uri modBase()

Base uri of the current WebMod. Starts and ends with a /. Example, /pub/

@see web::WebReq.modBase

modRel

Source

abstract Uri modRel()

The uri relative to BedSheetWebMod. Starts with a /. Example, /index.html

@see web::WebReq.modRel

remoteAddr

Source

abstract IpAddr remoteAddr()

The IP host address of the client socket making this request.

@see web::WebReq.remoteAddr

remotePort

Source

abstract Int remotePort()

The IP port of the client socket making this request.

@see web::WebReq.remotePort

uri

Source

abstract Uri uri()

The request URI including the query string relative to this authority. Also see absUri, modBase, modRel.

@see web::WebReq.uri