
WebReq encapsulates a web request.
See docLib::Web
Slots
- absUri
-
abstract Uri absUri()
The absolute request URI including the full authority and the query string. Also see uri. This method is equivalent to:
"http://" + headers["Host"] + uri
Examples:
http://www.foo.com/a/b/c http://www.foo.com/a?q=bar
-
Map of cookie values keyed by cookie name. The cookies map is readonly and case sensitive.
- form
-
Get the key/value pairs of the form data. If the request content type is "application/x-www-form-urlencoded", then the first time this method is called the request content is read and parsed using
sys::Uri.decodeQuery
. If the content type is not "application/x-www-form-urlencoded" this method returns null. - headers
-
Map of HTTP request headers. The headers map is readonly and case sensitive (see
sys::Map.caseInsensitive
).Examples:
req.headers["Accept-Language"]
- in
-
abstract InStream in()
The InStream for this request.
- method
-
abstract Str method()
The HTTP request method in uppercase. Example: GET, POST, PUT.
- remoteAddress
-
abstract IpAddress remoteAddress()
Get the IP host address of the client socket making this request.
- remotePort
-
abstract Int remotePort()
Get the IP port of the client socket making this request.
- resource
-
Obj resource
The namespace object resolved by uri.
- service
-
abstract WebService service()
Get the WebService managing the request.
- session
-
WebSession session()
- stash
-
Stash allows you to stash objects on the WebReq object in order to pass data b/w Weblets while processing this request.
- uri
-
abstract Uri uri()
The request URI including the query string relative to this authority. Also see absUri.
Examples:
/a/b/c /a?q=bar
- userAgent
-
abstract UserAgent userAgent()
The UserAgent for this request or null if the "User-Agent" header was not specified in the request.
- version
-
abstract Version version()
The HTTP version of the request.