Skip to content
David edited this page May 5, 2013 · 8 revisions

Request Objects (Javascript API)

The request object passed to a the run() function of a response processing module or the callback function of [BasicModules basic] module is a [org.apache.http.HttpUriRequest] (http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/client/methods/HttpUriRequest.html) object, which extends the HttpRequest object.

Properties

RequestLine request.requestLine

Returns a RequestLine object, which stores information about the request line associated with the request.

Header[] request.allHeaders

Returns an array of Header objects.

Functions

Header[] request.headers(String name)

Returns an array of Header objects corresponding to the name name.

Header firstHeader(String name)

Returns the first Header object that matches name.

Header lastHeader(String name)

Returns the last Header object that matches name.

boolean request.containsHeader(String name)

Returns true if the request contains the header name.

Clone this wiki locally