MCPcopy Create free account
hub / github.com/ptmt/react-native-macos / _reset

Method _reset

Libraries/Network/XMLHttpRequest.js:153–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 }
152
153 _reset(): void {
154 this.readyState = this.UNSENT;
155 this.responseHeaders = undefined;
156 this.status = 0;
157 delete this.responseURL;
158
159 this._requestId = null;
160
161 this._cachedResponse = undefined;
162 this._hasError = false;
163 this._headers = {};
164 this._response = '';
165 this._responseType = '';
166 this._sent = false;
167 this._lowerCaseResponseHeaders = {};
168
169 this._clearSubscriptions();
170 this._timedOut = false;
171 }
172
173 get responseType(): ResponseType {
174 return this._responseType;

Callers 2

constructorMethod · 0.95
abortMethod · 0.95

Calls 1

_clearSubscriptionsMethod · 0.95

Tested by

no test coverage detected