Lines Matching refs:response
26 const server = createServer(mustCall((request, response) => {
27 response.end('end', 'utf8', mustCall(() => {
28 response.end(mustCall());
30 response.end(mustCall());
34 response.on('finish', mustCall(() => {
35 response.end(mustCall());
37 response.end(mustCall());
65 const server = createServer(mustCall((request, response) => {
66 strictEqual(response, response.end());
67 strictEqual(response, response.end());
93 const server = createServer(mustCall((request, response) => {
94 response.end('test\uD83D\uDE00', mustCall(() => {
124 const server = createServer(mustCall((request, response) => {
125 response.end(mustCall(() => {
151 const server = createServer(mustCall((request, response) => {
152 strictEqual(response.writableEnded, false);
153 strictEqual(response.finished, false);
154 response.writeHead(HTTP_STATUS_OK, { foo: 'bar' });
155 strictEqual(response.finished, false);
156 response.end('data', mustCall());
157 strictEqual(response.writableEnded, true);
158 strictEqual(response.finished, true);
190 const server = createServer(mustCall((request, response) => {
192 response.end();
219 const server = createServer(mustCall((request, response) => {
220 response.writeHead(HTTP_STATUS_OK, { foo: 'bar' });
221 response.stream.on('close', mustCall(() => {
222 response.end(mustCall());
254 const server = createServer(mustCall((request, response) => {
256 response.writeHead(HTTP_STATUS_OK, { foo: 'bar' });
257 response.end('data', mustCall());
289 const server = createServer(mustCall((request, response) => {
291 response.writeHead(HTTP_STATUS_OK, { foo: 'bar' });
292 response.on('finish', mustCall(() => {
295 response.end('data', mustCall(() => {
297 response.end('data', mustCall());
329 const server = createServer(mustCall((request, response) => {
330 response.end('data', mustCall());
331 response.end(mustCall());