Fan

 

class

wisp::WispReq

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

WispReq

Slots

absUriSource

override Uri absUri()

Overrides web::WebReq.absUri

Doc inherited from web::WebReq.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
cookiesSource

override Str:Str cookies()

Overrides web::WebReq.cookies

Doc inherited from web::WebReq.cookies

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

formSource

override [Str:Str]? form()

Overrides web::WebReq.form

Doc inherited from web::WebReq.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.

headersSource

override Str:Str headers

Overrides web::WebReq.headers

Doc inherited from web::WebReq.headers

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

Examples:

req.headers["Accept-Language"]
inSource

override InStream in

Overrides web::WebReq.in

Doc inherited from web::WebReq.in

The InStream for this request.

makeSource

new make(WispService service, TcpSocket socket)

makeTestSource

new makeTest(InStream in)

methodSource

override Str method

Overrides web::WebReq.method

Doc inherited from web::WebReq.method

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

remoteAddressSource

override IpAddress remoteAddress

Overrides web::WebReq.remoteAddress

Doc inherited from web::WebReq.remoteAddress

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

remotePortSource

override Int remotePort

Overrides web::WebReq.remotePort

Doc inherited from web::WebReq.remotePort

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

serviceSource

override WispService service

Overrides web::WebReq.service

Doc inherited from web::WebReq.service

Get the WebService managing the request.

stashSource

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

Overrides web::WebReq.stash

Doc inherited from web::WebReq.stash

Stash allows you to stash objects on the WebReq object in order to pass data b/w Weblets while processing this request.

uriSource

override Uri uri

Overrides web::WebReq.uri

Doc inherited from web::WebReq.uri

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

Examples:

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

override UserAgent? userAgent()

Overrides web::WebReq.userAgent

Doc inherited from web::WebReq.userAgent

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

versionSource

override Version version

Overrides web::WebReq.version

Doc inherited from web::WebReq.version

The HTTP version of the request.