MCPcopy
hub / github.com/plasma-umass/browsix / callback

Function callback

src/bin/curl.ts:39–52  ·  view source on GitHub ↗
(response: http.IncomingMessage)

Source from the content-addressed store, hash-verified

37 };
38
39 function callback(response: http.IncomingMessage): void {
40 let chunks: Buffer[] = [];
41
42 response.on('data', (chunk: string) => {
43 chunks.push(new Buffer(chunk));
44 });
45
46 response.on('end', () => {
47 let all = Buffer.concat(chunks);
48 process.stdout.write(all, () => {
49 setTimeout(process.exit, 0);
50 });
51 });
52 }
53
54 http.request(options, callback).end();
55}

Callers 10

callRuntimeCallbacksFunction · 0.50
removeRunDependencyFunction · 0.50
dash.jsFile · 0.50
doneFunction · 0.50
doCallbackFunction · 0.50
callRuntimeCallbacksFunction · 0.50
removeRunDependencyFunction · 0.50
ld.jsFile · 0.50
doneFunction · 0.50
doCallbackFunction · 0.50

Calls 2

onMethod · 0.65
writeMethod · 0.65

Tested by

no test coverage detected