Class: HttpRequest

HttpRequest


new HttpRequest()

Represents AJAX request.

Encapsulates XHR object and AJAX parameters.

Members


debug :boolean

Flag indicating that a request must output debug information.

Type:
  • boolean

params :Object

Request parameters.

See Jquery/Zepto documentation for details.

  • http://api.jquery.com/jQuery.ajax/
  • http://zeptojs.com/#$.ajax
Type:
  • Object

state :Object

The state object is used to store global enviroment conditions that may be relevant when processing this request but would not be passed to the server.

Type:
  • Object

xhr :XMLHttpRequest

XmlHttpRequest object.

Type:
  • XMLHttpRequest

Methods


execute(token, mdHash, upHash)

Executes AJAX request.

Parameters:
Name Type Description
token string

OAuth token. Must not be supplied for login type requests.

mdHash string

current private metadata hash, used to validate the client metadata against the server.

upHash string

Current User preferences hash, used to validate the client user pref data against the server.