MCPcopy Create free account
hub / github.com/Azure/powershell / readBody

Method readBody

lib/index.js:2567–2579  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2565 this.message = message;
2566 }
2567 readBody() {
2568 return __awaiter(this, void 0, void 0, function* () {
2569 return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
2570 let output = Buffer.alloc(0);
2571 this.message.on('data', (chunk) => {
2572 output = Buffer.concat([output, chunk]);
2573 });
2574 this.message.on('end', () => {
2575 resolve(output.toString());
2576 });
2577 }));
2578 });
2579 }
2580}
2581exports.HttpClientResponse = HttpClientResponse;
2582function isHttps(requestUrl) {

Callers 3

requestMethod · 0.80
_processResponseMethod · 0.80
getManifestFromRepoFunction · 0.80

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected