MCPcopy Create free account
hub / github.com/axios/axios / constructor

Method constructor

tests/browser/basicAuth.browser.test.js:6–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5class MockXMLHttpRequest {
6 constructor() {
7 this.requestHeaders = {};
8 this.responseHeaders = '';
9 this.readyState = 0;
10 this.status = 0;
11 this.statusText = '';
12 this.responseText = '';
13 this.response = null;
14 this.onreadystatechange = null;
15 this.onloadend = null;
16 this.upload = {
17 addEventListener() {},
18 };
19 }
20
21 open(method, url, async = true) {
22 this.method = method;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected