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

Method getResponseBody

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

Source from the content-addressed store, hash-verified

66 }
67
68 async getResponseBody() {
69 if (this.responseBody) { return this.responseBody; }
70 return this.responseBody = await new Promise(res=>{
71 this.bodyPort.onmessage = e => {
72 this.hasResponseBody = true;
73 res(e.data);
74 };
75 this.bodyPort.postMessage(null);
76 });
77 }
78
79 sendResponse() {
80 this.responsePort.postMessage({

Callers 2

background.tsFile · 0.80
getModifiedResponseFunction · 0.80

Calls 1

postMessageMethod · 0.80

Tested by

no test coverage detected