[TIMOB-13160] Missing HTTPClient state constants / Outdated documentation
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | TiAPI |
Labels | n/a |
Reporter | Igor Santos |
Assignee | Unknown |
Created | 2013-03-22T03:01:53.000+0000 |
Updated | 2018-02-28T20:04:12.000+0000 |
Description
Problem description
I've been trying to use theTitanium.Network.HTTPClient
constants for readyState, using code such as Titanium.Network.HTTPClient.DONE
inside the onreadystatechange
event, as shown [in the documentation](http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.Network.HTTPClient-property-readyState) and in this [old tutorial](https://wiki.appcelerator.org/display/guides/HTTPClient+and+the+Request+Lifecycle), that's using hardcoded numbers instead of the constants.
However, those constants are always undefined. Did they exist and were later removed and the documentation was left there, or is this some sort of bug, that's hiding the constants out of our view?
I've originally created a [question on the Q&A site](http://developer.appcelerator.com/question/149715/how-to-use-tinetworkhttpclientonreadystatechange) that then prompted me to create this report.
No comments