Lines Matching refs:response
25 function onRequest(request, response) {
28 response.writeHead(200, { 'content-type': 'application/json' });
29 response.end(JSON.stringify({
44 request.on('response', common.mustCall((headers) => {
91 common.mustCall((response) => {
92 strictEqual(response.statusCode, 200);
93 strictEqual(response.statusMessage, 'OK');
94 strictEqual(response.headers['content-type'], 'application/json');
96 response.setEncoding('utf8');
98 response.on('data', (chunk) => { raw += chunk; });
99 response.on('end', common.mustCall(() => {