MCPcopy
hub / github.com/google/tamperchrome / sendRequest

Method sendRequest

v2/ui/src/interceptor.service.ts:46–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 }
45
46 sendRequest() {
47 if (this.port) {
48 this.port.postMessage({request: {
49 method: this.method,
50 url: this.url,
51 requestHeaders: this.headers.filter(v => !v.disabled),
52 requestBody: this.requestBody,
53 }});
54 }
55 this.pendingRequest = false;
56 }
57
58 addResponse(request: InterceptedData, responsePort: MessagePort, bodyPort: MessagePort) {
59 this.request = request;

Callers 1

addRequestMethod · 0.95

Calls 1

postMessageMethod · 0.80

Tested by

no test coverage detected