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

Method constructor

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected