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

Home > API > Request-Object

Request Objects (Javascript API)

The request object passed to a the run() function of a response processing module or the callback function of basic module is a org.apache.http.HttpUriRequest 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.

Home > API

Have feedback on Vega? Our documentation? Please tell us.

Clone this wiki locally