• Home
  • Raw
  • Download

Lines Matching refs:res

12   const server = http.createServer(common.mustCall((req, res) => {
14 res.writeEarlyHints({
19 res.end(testResBody);
29 req.on('information', common.mustCall((res) => {
30 assert.strictEqual(res.headers.link, '</styles.css>; rel=preload; as=style');
33 req.on('response', common.mustCall((res) => {
36 assert.strictEqual(res.statusCode, 200, `Final status code was ${res.statusCode}, not 200.`);
38 res.on('data', (chunk) => {
42 res.on('end', common.mustCall(() => {
56 const server = http.createServer(common.mustCall((req, res) => {
58 res.writeEarlyHints({
67 res.end(testResBody);
76 req.on('information', common.mustCall((res) => {
78 res.headers.link,
84 req.on('response', common.mustCall((res) => {
87 assert.strictEqual(res.statusCode, 200, `Final status code was ${res.statusCode}, not 200.`);
89 res.on('data', (chunk) => {
93 res.on('end', common.mustCall(() => {
107 const server = http.createServer(common.mustCall((req, res) => {
109 res.writeEarlyHints({
114 res.end(testResBody);
125 req.on('response', common.mustCall((res) => {
128 assert.strictEqual(res.statusCode, 200, `Final status code was ${res.statusCode}, not 200.`);
130 res.on('data', (chunk) => {
134 res.on('end', common.mustCall(() => {
148 const server = http.createServer(common.mustCall((req, res) => {
150 res.writeEarlyHints({
156 res.end(testResBody);
165 req.on('information', common.mustCall((res) => {
167 res.headers.link,
170 assert.strictEqual(res.headers['x-trace-id'], 'id for diagnostics');
173 req.on('response', common.mustCall((res) => {
176 assert.strictEqual(res.statusCode, 200, `Final status code was ${res.statusCode}, not 200.`);
178 res.on('data', (chunk) => {
182 res.on('end', common.mustCall(() => {
196 const server = http.createServer(common.mustCall((req, res) => {
198 res.writeEarlyHints({
207 res.end(testResBody);
216 req.on('information', common.mustCall((res) => {
218 res.headers.link,
221 assert.strictEqual(res.headers['x-trace-id'], 'id for diagnostics');
224 req.on('response', common.mustCall((res) => {
227 assert.strictEqual(res.statusCode, 200, `Final status code was ${res.statusCode}, not 200.`);
229 res.on('data', (chunk) => {
233 res.on('end', common.mustCall(() => {
247 const server = http.createServer(common.mustCall((req, res) => {
249 res.writeEarlyHints({});
252 res.end(testResBody);
263 req.on('response', common.mustCall((res) => {
266 assert.strictEqual(res.statusCode, 200, `Final status code was ${res.statusCode}, not 200.`);
268 res.on('data', (chunk) => {
272 res.on('end', common.mustCall(() => {