Lines Matching refs:res
37 const server = http.createServer(common.mustCall((req, res) => {
39 res.destroy();
43 const socket = res.connection;
46 res.end('hello world');
67 const req = get('/second', common.mustCall((res) => {
69 assert.strictEqual(res.statusCode, 200);
70 res.on('data', checkDataAndSockets);
71 res.on('end', common.mustCall(() => {
86 const req = get('/remote_close', common.mustCall((res) => {
88 assert.strictEqual(res.statusCode, 200);
89 res.on('data', checkDataAndSockets);
90 res.on('end', common.mustCall(() => {
131 const req = get('/first', common.mustCall((res) => {
133 assert.strictEqual(res.statusCode, 200);
134 res.on('data', checkDataAndSockets);
135 res.on('end', common.mustCall(() => {