MCPcopy
hub / github.com/DO-SAY-GO/dn / getBody

Function getBody

src/archivist.js:758–766  ·  view source on GitHub ↗
({requestId, responseStatusCode})

Source from the content-addressed store, hash-verified

756 }
757
758 async function getBody({requestId, responseStatusCode}) {
759 let resp;
760 if ( ! BODYLESS.has(responseStatusCode) ) {
761 resp = await send("Fetch.getResponseBody", {requestId});
762 } else {
763 resp = {body:'', base64Encoded:true};
764 }
765 return resp;
766 }
767
768 function dontInstall(targetInfo) {
769 return targetInfo.type !== 'page';

Callers 1

cacheRequestFunction · 0.85

Calls 1

sendFunction · 0.85

Tested by

no test coverage detected