MCPcopy Create free account
hub / github.com/nodejs/node / get

Function get

test/parallel/test-http-agent-keepalive.js:49–56  ·  view source on GitHub ↗
(path, callback)

Source from the content-addressed store, hash-verified

47}, 4));
48
49function get(path, callback) {
50 return http.get({
51 host: 'localhost',
52 port: server.address().port,
53 agent: agent,
54 path: path
55 }, callback).on('socket', common.mustCall(checkListeners));
56}
57
58function checkDataAndSockets(body) {
59 assert.strictEqual(body.toString(), 'hello world');

Callers 5

loadFunction · 0.90
secondFunction · 0.70
remoteCloseFunction · 0.70
remoteErrorFunction · 0.70

Calls 3

getMethod · 0.65
addressMethod · 0.65
onMethod · 0.45

Tested by

no test coverage detected