Lines Matching refs:response
182 }, common.mustCall((response) => {
185 assert.strictEqual(response.statusCode, 201);
186 assert.strictEqual(response.headers['x-test-header'], 'testing');
187 assert.strictEqual(response.headers['x-test-array-header'],
189 assert.deepStrictEqual(cookies, response.headers['set-cookie']);
190 assert.strictEqual(response.headers['x-test-header2'], undefined);
195 assert.strictEqual(+response.headers['content-length'], content.length);
200 assert.strictEqual(response.headers['transfer-encoding'], 'chunked');
205 assert.strictEqual(response.headers['x-foo'], 'bar');
206 assert.strictEqual(response.headers['x-bar'], 'baz');
207 assert.strictEqual(response.statusCode, 200);
215 response.setEncoding('utf8');
216 response.on('data', (s) => {
220 response.on('end', common.mustCall(() => {