logo

class

wisp::WispReq

sys::Obj
  web::WebReq
    wisp::WispReq

WispReq

Slots

absUri

override 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

Source

cookies

override Str:Str cookies

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

Source

form

override Str:Str 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.

Source

headers

override Str:Str headers

Map of HTTP request headers. The headers map is readonly and case sensitive (see sys::Map.caseInsensitive).

Examples:

req.headers["Accept-Language"]

Source

in

override InStream in

The InStream for this request.

Source

make

new make(WispService service, TcpSocket socket)

Source

makeTest

new makeTest(InStream in)

Source

method

override Str method

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

Source

remoteAddress

override IpAddress remoteAddress

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

Source

remotePort

override Int remotePort

Get the IP port of the client socket making this request.

Source

service

override WispService service

Get the WebService managing the request.

Source

stash

override Str:Obj stash := Str:sys::Obj][:]

Source

uri

override Uri uri

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

Examples:

/a/b/c
/a?q=bar

Source

userAgent

override UserAgent userAgent

The UserAgent for this request or null if the "User-Agent" header was not specified in the request.

Source

version

override Version version

The HTTP version of the request.

Source