Lines Matching refs:res
149 const server = http.createServer((req, res) => {
157 pipeline(rs, res, () => {});
166 req.on('response', (res) => {
168 res.on('data', (data) => buf.push(data));
169 res.on('end', common.mustCall(() => {
181 const server = http.createServer((req, res) => {
197 pipeline(rs, res, () => {});
206 req.on('response', (res) => {
208 res.destroy();
216 const server = http.createServer((req, res) => {
230 pipeline(rs, res, () => {});
249 req.on('response', (res) => {
250 pipeline(res, badSink, common.mustCall((err) => {
259 const server = http.createServer((req, res) => {
260 pipeline(req, res, common.mustSucceed());
282 req.on('response', (res) => {
284 res.on('data', () => {
568 const server = http.Server(function(req, res) {
569 res.write('asd');
572 http.get({ port: this.address().port }, (res) => {
578 res,
592 let res = '';
595 res += chunk;
603 assert.strictEqual(res, 'helloworld');
608 let res = '';
611 res += chunk;
620 assert.strictEqual(res, 'helloworld');
625 let res = '';
628 res += chunk;
636 assert.strictEqual(res, 'helloworld');
641 let res = '';
644 res += chunk;
653 assert.strictEqual(res, 'helloworld');
658 let res = '';
669 res += chunk;
672 assert.strictEqual(res, 'HELLOWORLD');
903 let res = '';
914 res += chunk;
918 assert.strictEqual(res, '');
923 let res = '';
934 res += chunk;
938 assert.strictEqual(res, '');
943 let res = '';
955 res += chunk;
958 assert.strictEqual(res, 'HELLOWORLD');
1003 const server = http.createServer((req, res) => {
1016 assert(!req.res);
1046 let res = '';
1063 res += chunk;
1067 assert.strictEqual(res, '');
1072 const server = http.createServer((req, res) => {
1076 res.end();
1274 let res = '';
1277 res += chunk;
1282 assert.strictEqual(res, 'helloworld');
1343 let res = '';
1346 res += chunk;
1352 assert.strictEqual(res, '012345');
1364 let res = '';
1367 res += chunk;
1372 assert.strictEqual(res, '123');
1381 let res = '';
1384 res += String.fromCharCode(val);
1388 assert.strictEqual(res, content);
1621 let res = '';
1624 res += chunk;
1633 assert.strictEqual(res, 'helloworld');