* Request constructor * * @param {Object} options * @package
(createRequest, uri, opts)
| 1142 | * @package |
| 1143 | */ |
| 1144 | function Request(createRequest, uri, opts) { |
| 1145 | var _this4; |
| 1146 | _this4 = _Emitter.call(this) || this; |
| 1147 | _this4.createRequest = createRequest; |
| 1148 | installTimerFunctions(_this4, opts); |
| 1149 | _this4._opts = opts; |
| 1150 | _this4._method = opts.method || "GET"; |
| 1151 | _this4._uri = uri; |
| 1152 | _this4._data = undefined !== opts.data ? opts.data : null; |
| 1153 | _this4._create(); |
| 1154 | return _this4; |
| 1155 | } |
| 1156 | /** |
| 1157 | * Creates the XHR object and sends the request. |
| 1158 | * |
nothing calls this directly
no test coverage detected