{ "id": "111527", "key": "TIMOB-13160", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2013-03-22T03:01:53.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:12.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "h1. Problem description\r\n\r\nI've been trying to use the {{Titanium.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.\r\n\r\nHowever, 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?\r\n\r\nI'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.", "attachment": [], "flagged": false, "summary": "Missing HTTPClient state constants / Outdated documentation", "creator": { "name": "igorsantos07", "key": "igorsantos07", "displayName": "Igor Santos", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "igorsantos07", "key": "igorsantos07", "displayName": "Igor Santos", "active": true, "timeZone": "America/Sao_Paulo" }, "environment": "Titanium 3.0.2.GA", "comment": { "comments": [], "maxResults": 1, "total": 1, "startAt": 0 } } }