MCPcopy Create free account
hub / github.com/Silentely/eSIM-Tools / constructor

Method constructor

tests/security/bff-proxy.test.js:44–49  ·  view source on GitHub ↗
(url, init = {})

Source from the content-addressed store, hash-verified

42
43 class MockRequest {
44 constructor(url, init = {}) {
45 this.url = url;
46 this.method = init.method || 'GET';
47 this.headers = init.headers instanceof MockHeaders ? init.headers : new MockHeaders(init.headers || {});
48 this.body = init.body;
49 }
50
51 async arrayBuffer() {
52 const text = typeof this.body === 'string' ? this.body : JSON.stringify(this.body || '');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected