Version 1.7 glow.net.Response
API Quick Reference
JavaScript is required to use the quick reference
Provided in callbacks to glow.net.post and glow.net.get
Further Info & Examples
Constructor
There is no direct constructor, since glow.net.post and glow.net.get create the instances.
Properties
- nativeResponse
-
The response object from the browser.
- status
-
HTTP status code of the response
- Type
- Number
- timedOut
-
Boolean indicating if the requests time out was reached.
- Type
- Boolean
- wasSuccessful
-
Boolean indicating if the request returned successfully.
- Type
- Boolean
Methods
- header
-
Gets a header from the response
- json
-
Gets the body of the response as a json object
- statusText
-
Gets the meaning of myResponse.status
- text
-
Gets the body of the response as plain text
- xml
-
Gets the body of the response as xml
Synopsis
myResponse.xml();
Returns
xml
Response as XML