Lines Matching +full:test +full:- +full:book
7 // Test 1: Simple HTTP test, no keep-alive.
12 res.setHeader('Content-Type', 'text/plain');
31 // Test 2: Keep-alive for 2 requests.
36 res.setHeader('Content-Type', 'text/plain');
46 headers: { Connection: 'keep-alive' }
63 // Test 3: Connection: close request/response with chunked
74 res.setHeader('Content-Type', 'text/plain');
100 // Test 4: Connection: close request/response with Content-Length
101 // The same as Test 3, but with Content-Length headers
105 assert.strictEqual(req.headers['content-length'], testData.length + '');
112 res.setHeader('Content-Type', 'text/plain');
113 res.setHeader('Content-Length', testData.length);
131 assert.strictEqual(res.headers['content-length'], testData.length + '');
137 req.setHeader('Content-Length', testData.length);
142 // Test 5: The client sends garbage.
153 'I’m reading a book about anti-gravity. It’s impossible to put down!');