Lines Matching +full:require +full:- +full:common +full:- +full:first
3 const common = require('../common'); constant
4 const http = require('http');
5 const assert = require('assert');
6 const Countdown = require('../common/countdown');
9 // 'content-length' should also be in this list but it is
10 // handled differently because multiple content-lengths are
11 // an error (see test-http-response-multi-content-length.js).
13 'content-type',
14 'user-agent',
18 'proxy-authorization',
19 'if-modified-since',
20 'if-unmodified-since',
23 'max-forwards',
24 'retry-after',
26 'last-modified',
34 const num = req.headers['x-num'];
39 res.setHeader('X-A', ['A', 'B']);
45 headers['X-A'] = ['A', 'B'];
51 server.listen(0, common.mustCall(function() {
54 // This runs twice, the first time, the server will use
57 // either case -- only the first instance of the header
61 { port: this.address().port, headers: { 'x-num': n } },
62 common.mustCall(function(res) {
67 assert.strictEqual(res.headers['x-a'], 'A, B');