MCPcopy
hub / github.com/localtunnel/server / make_req

Function make_req

test/queue.js:78–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }
77
78 function make_req() {
79 opt.headers['x-count'] = count++;
80 http.get(opt, function(res) {
81 res.setEncoding('utf8');
82 var body = '';
83
84 res.on('data', function(chunk) {
85 body += chunk;
86 });
87
88 res.on('end', function() {
89 assert.equal('foo', body);
90 maybe_done();
91 });
92 });
93 }
94
95 for (var i=0 ; i<num_requests ; ++i) {
96 make_req();

Callers 1

queue.jsFile · 0.85

Calls 1

maybe_doneFunction · 0.85

Tested by

no test coverage detected