()
| 5003 | var NATIVE = 1, RUNTIME = 2; |
| 5004 | |
| 5005 | function XMLHttpRequest() { |
| 5006 | var self = this, |
| 5007 | // this (together with _p() @see below) is here to gracefully upgrade to setter/getter syntax where possible |
| 5008 | props = { |
| 5009 | /** |
| 5010 | The amount of milliseconds a request can take before being terminated. Initially zero. Zero means there is no timeout. |
| 5011 | |
| 5012 | @property timeout |
| 5013 | @type Number |
| 5014 | @default 0 |
| 5015 | */ |
| 5016 | timeout: 0, |
| 5017 | |
| 5018 | /** |
| 5019 | Current state, can take following values: |
| 5020 | UNSENT (numeric value 0) |
| 5021 | The object has been constructed. |
| 5022 | |
| 5023 | OPENED (numeric value 1) |
| 5024 | The open() method has been successfully invoked. During this state request headers can be set using setRequestHeader() and the request can be made using the send() method. |
| 5025 | |
| 5026 | HEADERS_RECEIVED (numeric value 2) |
| 5027 | All redirects (if any) have been followed and all HTTP headers of the final response have been received. Several response members of the object are now available. |
| 5028 | |
| 5029 | LOADING (numeric value 3) |
| 5030 | The response entity body is being received. |
| 5031 | |
| 5032 | DONE (numeric value 4) |
| 5033 | |
| 5034 | @property readyState |
| 5035 | @type Number |
| 5036 | @default 0 (UNSENT) |
| 5037 | */ |
| 5038 | readyState: XMLHttpRequest.UNSENT, |
| 5039 | |
| 5040 | /** |
| 5041 | True when user credentials are to be included in a cross-origin request. False when they are to be excluded |
| 5042 | in a cross-origin request and when cookies are to be ignored in its response. Initially false. |
| 5043 | |
| 5044 | @property withCredentials |
| 5045 | @type Boolean |
| 5046 | @default false |
| 5047 | */ |
| 5048 | withCredentials: false, |
| 5049 | |
| 5050 | /** |
| 5051 | Returns the HTTP status code. |
| 5052 | |
| 5053 | @property status |
| 5054 | @type Number |
| 5055 | @default 0 |
| 5056 | */ |
| 5057 | status: 0, |
| 5058 | |
| 5059 | /** |
| 5060 | Returns the HTTP status text. |
| 5061 | |
| 5062 | @property statusText |
nothing calls this directly
no test coverage detected