Advanced Alerting APIs
HttpResponse Interface Reference

Contains the data resulting from an HTTP request. More...

List of all members.

Public Member Functions

string getContent ()
string getContentType ()
array getCookies ()
string getEncoding ()
object getHeaders ()
int getStatus ()

Detailed Description

Contains the data resulting from an HTTP request.

Author:
Matt Rodriguez

Member Function Documentation

string getContent ( )

Gets the content returned from the HTTP request.

Returns:
A string of the content
string getContentType ( )

Gets the content type ie "text/html"

Returns:
A string of the content type
array getCookies ( )

Gets a Javascript array of cookies. Each cookie is a Javascript object represented

{name: cookieName,
value: cookieValue,
options:{path: cookiePath,
expires: expirationTime,
secure: isSecure}

Returns:
A Javascript array of cookies.
string getEncoding ( )

Gets the encoding ie "UTF8".

Returns:
A string of the encoding.
object getHeaders ( )

Gets a Javascript object of the headers.

Returns:
A Javascript object of the headers.
int getStatus ( )

Gets the HTTP status code.

Returns:
An int which is the status code of the request.
 All Classes Functions