Class webdriver.http.Response

code »

Represents a HTTP response.

Constructor

webdriver.http.Response ( status, headers, body )
Parameters
status: number
The response code.
headers: !Object.<string>
The response headers. All header names will be converted to lowercase strings for consistent lookups.
body: string
The response body.
Show:

Instance Methods

code »toString ( )string

Instance Properties

The response body.

The response body.

The HTTP response code.

Static Functions

Builds a webdriver.http.Response from a XMLHttpRequest or XDomainRequest response object.

Parameters
xhr: !(XDomainRequest|XMLHttpRequest)
The request to parse.
Returns
The parsed response.