Skip to content
Myr

client.js

This file

Path

client.js

25 lines · 405 bytes · JavaScript

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 27e696b point at it.

Added `req.get()` alias of `req.header()`TJ Holowaychukbefore adoption27e696b

lines 1–25why, one step back
1
2var http = require('http');34var times = 50;56while (times--) {7 var req = http.request({8 port: 30009 , method: 'POST'10 , headers: { 'Content-Type': 'application/x-www-form-urlencoded' }11 });1213 req.on('response', function(res){14 console.log(res.statusCode);15 });1617 var n = 500000;18 while (n--) {19 req.write('foo=bar&bar=baz&');20 }2122 req.write('foo=bar&bar=baz');2324 req.end();25}