MCPcopy Index your code
hub / github.com/nodejs/node / read

Function read

lib/https.js:217–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215 // By default, the socket is in paused mode. Read to look for the 200
216 // connection established response.
217 function read() {
218 let chunk;
219 while ((chunk = socket.read()) !== null) {
220 if (onProxyData(chunk) !== -1) {
221 break;
222 }
223 }
224 socket.on('readable', read);
225 }
226
227 function cleanup() {
228 socket.removeListener('end', onProxyEnd);

Callers 1

establishTunnelFunction · 0.70

Calls 3

onProxyDataFunction · 0.85
readMethod · 0.45
onMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…