api documentation for xhr2 (v0.1.4)

XMLHttpRequest emulation for node.js

table of contents

  1. module xhr2
    1. function xhr2 (options)
    2. function xhr2.InvalidStateError ()
    3. function xhr2.ProgressEvent (type)
    4. function xhr2.SecurityError ()
    5. function xhr2.XMLHttpRequest (options)
    6. function xhr2.XMLHttpRequestUpload (request)
    7. function xhr2.nodejsSet (options)
    8. number xhr2.DONE
    9. number xhr2.HEADERS_RECEIVED
    10. number xhr2.LOADING
    11. number xhr2.OPENED
    12. number xhr2.UNSENT
    13. object xhr2.InvalidStateError.prototype
    14. object xhr2.SecurityError.prototype
    15. object xhr2.XMLHttpRequest.prototype
    16. object xhr2.XMLHttpRequestUpload.prototype
    17. object xhr2.__super__
  2. module xhr2.InvalidStateError
    1. function xhr2.InvalidStateError ()
    2. function xhr2.InvalidStateError.captureStackTrace ()
    3. number xhr2.InvalidStateError.stackTraceLimit
    4. object xhr2.InvalidStateError.__super__
  3. module xhr2.InvalidStateError.prototype
    1. function xhr2.InvalidStateError.prototype.constructor ()
  4. module xhr2.SecurityError
    1. function xhr2.SecurityError ()
    2. function xhr2.SecurityError.captureStackTrace ()
    3. number xhr2.SecurityError.stackTraceLimit
    4. object xhr2.SecurityError.__super__
  5. module xhr2.SecurityError.prototype
    1. function xhr2.SecurityError.prototype.constructor ()
  6. module xhr2.XMLHttpRequest
    1. function xhr2.XMLHttpRequest (options)
    2. function xhr2.XMLHttpRequest.InvalidStateError ()
    3. function xhr2.XMLHttpRequest.ProgressEvent (type)
    4. function xhr2.XMLHttpRequest.SecurityError ()
    5. function xhr2.XMLHttpRequest.XMLHttpRequestUpload (request)
    6. function xhr2.XMLHttpRequest.nodejsSet (options)
    7. number xhr2.XMLHttpRequest.DONE
    8. number xhr2.XMLHttpRequest.HEADERS_RECEIVED
    9. number xhr2.XMLHttpRequest.LOADING
    10. number xhr2.XMLHttpRequest.OPENED
    11. number xhr2.XMLHttpRequest.UNSENT
    12. object xhr2.XMLHttpRequest.__super__
  7. module xhr2.XMLHttpRequest.prototype
    1. function xhr2.XMLHttpRequest.prototype._concatBuffers (buffers)
    2. function xhr2.XMLHttpRequest.prototype._dispatchProgress (eventType)
    3. function xhr2.XMLHttpRequest.prototype._finalizeHeaders ()
    4. function xhr2.XMLHttpRequest.prototype._onHttpRequestError (request, error)
    5. function xhr2.XMLHttpRequest.prototype._onHttpResponse (request, response)
    6. function xhr2.XMLHttpRequest.prototype._onHttpResponseClose (response)
    7. function xhr2.XMLHttpRequest.prototype._onHttpResponseData (response, data)
    8. function xhr2.XMLHttpRequest.prototype._onHttpResponseEnd (response)
    9. function xhr2.XMLHttpRequest.prototype._onHttpTimeout (request)
    10. function xhr2.XMLHttpRequest.prototype._parseResponse ()
    11. function xhr2.XMLHttpRequest.prototype._parseResponseEncoding ()
    12. function xhr2.XMLHttpRequest.prototype._parseResponseHeaders (response)
    13. function xhr2.XMLHttpRequest.prototype._parseTextResponse (buffer)
    14. function xhr2.XMLHttpRequest.prototype._parseUrl (urlString)
    15. function xhr2.XMLHttpRequest.prototype._sendFile ()
    16. function xhr2.XMLHttpRequest.prototype._sendHttp (data)
    17. function xhr2.XMLHttpRequest.prototype._sendHxxpRequest ()
    18. function xhr2.XMLHttpRequest.prototype._setError ()
    19. function xhr2.XMLHttpRequest.prototype._setReadyState (newReadyState)
    20. function xhr2.XMLHttpRequest.prototype.abort ()
    21. function xhr2.XMLHttpRequest.prototype.constructor (options)
    22. function xhr2.XMLHttpRequest.prototype.getAllResponseHeaders ()
    23. function xhr2.XMLHttpRequest.prototype.getResponseHeader (name)
    24. function xhr2.XMLHttpRequest.prototype.nodejsSet (options)
    25. function xhr2.XMLHttpRequest.prototype.open (method, url, async, user, password)
    26. function xhr2.XMLHttpRequest.prototype.overrideMimeType (newMimeType)
    27. function xhr2.XMLHttpRequest.prototype.send (data)
    28. function xhr2.XMLHttpRequest.prototype.setRequestHeader (name, value)
    29. number xhr2.XMLHttpRequest.prototype.DONE
    30. number xhr2.XMLHttpRequest.prototype.HEADERS_RECEIVED
    31. number xhr2.XMLHttpRequest.prototype.LOADING
    32. number xhr2.XMLHttpRequest.prototype.OPENED
    33. number xhr2.XMLHttpRequest.prototype.UNSENT
    34. object xhr2.XMLHttpRequest.prototype._privateHeaders
    35. object xhr2.XMLHttpRequest.prototype._restrictedHeaders
    36. object xhr2.XMLHttpRequest.prototype._restrictedMethods
    37. object xhr2.XMLHttpRequest.prototype.nodejsBaseUrl
    38. object xhr2.XMLHttpRequest.prototype.nodejsHttpAgent
    39. object xhr2.XMLHttpRequest.prototype.nodejsHttpsAgent
    40. object xhr2.XMLHttpRequest.prototype.onreadystatechange
    41. object xhr2.XMLHttpRequest.prototype.readyState
    42. object xhr2.XMLHttpRequest.prototype.response
    43. object xhr2.XMLHttpRequest.prototype.responseText
    44. object xhr2.XMLHttpRequest.prototype.responseType
    45. object xhr2.XMLHttpRequest.prototype.status
    46. object xhr2.XMLHttpRequest.prototype.timeout
    47. object xhr2.XMLHttpRequest.prototype.upload
    48. string xhr2.XMLHttpRequest.prototype._userAgent
  8. module xhr2.XMLHttpRequestUpload
    1. function xhr2.XMLHttpRequestUpload (request)
    2. object xhr2.XMLHttpRequestUpload.__super__
  9. module xhr2.XMLHttpRequestUpload.prototype
    1. function xhr2.XMLHttpRequestUpload.prototype._finalizeHeaders (headers, loweredHeaders)
    2. function xhr2.XMLHttpRequestUpload.prototype._reset ()
    3. function xhr2.XMLHttpRequestUpload.prototype._setData (data)
    4. function xhr2.XMLHttpRequestUpload.prototype._startUpload (request)
    5. function xhr2.XMLHttpRequestUpload.prototype.constructor (request)
  10. module xhr2.__super__
    1. function xhr2.__super__.addEventListener (eventType, listener)
    2. function xhr2.__super__.dispatchEvent (event)
    3. function xhr2.__super__.removeEventListener (eventType, listener)
    4. object xhr2.__super__.onabort
    5. object xhr2.__super__.onerror
    6. object xhr2.__super__.onload
    7. object xhr2.__super__.onloadend
    8. object xhr2.__super__.onloadstart
    9. object xhr2.__super__.onprogress
    10. object xhr2.__super__.ontimeout

module xhr2

function xhr2 (options)

function xhr2.InvalidStateError ()

function xhr2.ProgressEvent (type)

function xhr2.SecurityError ()

function xhr2.XMLHttpRequest (options)

function xhr2.XMLHttpRequestUpload (request)

function xhr2.nodejsSet (options)

module xhr2.InvalidStateError

function xhr2.InvalidStateError ()

function xhr2.InvalidStateError.captureStackTrace ()

module xhr2.InvalidStateError.prototype

function xhr2.InvalidStateError.prototype.constructor ()

module xhr2.SecurityError

function xhr2.SecurityError ()

function xhr2.SecurityError.captureStackTrace ()

module xhr2.SecurityError.prototype

function xhr2.SecurityError.prototype.constructor ()

module xhr2.XMLHttpRequest

function xhr2.XMLHttpRequest (options)

function xhr2.XMLHttpRequest.InvalidStateError ()

function xhr2.XMLHttpRequest.ProgressEvent (type)

function xhr2.XMLHttpRequest.SecurityError ()

function xhr2.XMLHttpRequest.XMLHttpRequestUpload (request)

function xhr2.XMLHttpRequest.nodejsSet (options)

module xhr2.XMLHttpRequest.prototype

function xhr2.XMLHttpRequest.prototype._concatBuffers (buffers)

function xhr2.XMLHttpRequest.prototype._dispatchProgress (eventType)

function xhr2.XMLHttpRequest.prototype._finalizeHeaders ()

function xhr2.XMLHttpRequest.prototype._onHttpRequestError (request, error)

function xhr2.XMLHttpRequest.prototype._onHttpResponse (request, response)

function xhr2.XMLHttpRequest.prototype._onHttpResponseClose (response)

function xhr2.XMLHttpRequest.prototype._onHttpResponseData (response, data)

function xhr2.XMLHttpRequest.prototype._onHttpResponseEnd (response)

function xhr2.XMLHttpRequest.prototype._onHttpTimeout (request)

function xhr2.XMLHttpRequest.prototype._parseResponse ()

function xhr2.XMLHttpRequest.prototype._parseResponseEncoding ()

function xhr2.XMLHttpRequest.prototype._parseResponseHeaders (response)

function xhr2.XMLHttpRequest.prototype._parseTextResponse (buffer)

function xhr2.XMLHttpRequest.prototype._parseUrl (urlString)

function xhr2.XMLHttpRequest.prototype._sendFile ()

function xhr2.XMLHttpRequest.prototype._sendHttp (data)

function xhr2.XMLHttpRequest.prototype._sendHxxpRequest ()

function xhr2.XMLHttpRequest.prototype._setError ()

function xhr2.XMLHttpRequest.prototype._setReadyState (newReadyState)

function xhr2.XMLHttpRequest.prototype.abort ()

function xhr2.XMLHttpRequest.prototype.constructor (options)

function xhr2.XMLHttpRequest.prototype.getAllResponseHeaders ()

function xhr2.XMLHttpRequest.prototype.getResponseHeader (name)

function xhr2.XMLHttpRequest.prototype.nodejsSet (options)

function xhr2.XMLHttpRequest.prototype.open (method, url, async, user, password)

function xhr2.XMLHttpRequest.prototype.overrideMimeType (newMimeType)

function xhr2.XMLHttpRequest.prototype.send (data)

function xhr2.XMLHttpRequest.prototype.setRequestHeader (name, value)

module xhr2.XMLHttpRequestUpload

function xhr2.XMLHttpRequestUpload (request)

module xhr2.XMLHttpRequestUpload.prototype

function xhr2.XMLHttpRequestUpload.prototype._finalizeHeaders (headers, loweredHeaders)

function xhr2.XMLHttpRequestUpload.prototype._reset ()

function xhr2.XMLHttpRequestUpload.prototype._setData (data)

function xhr2.XMLHttpRequestUpload.prototype._startUpload (request)

function xhr2.XMLHttpRequestUpload.prototype.constructor (request)

module xhr2.__super__

function xhr2.__super__.addEventListener (eventType, listener)

function xhr2.__super__.dispatchEvent (event)

function xhr2.__super__.removeEventListener (eventType, listener)

[ this document was created with utility2 ]