File: chat-websocket/node_modules/express/client.js

Recommend this page to a friend!
  Classes of Igor Escobar   Terminal Crossword   chat-websocket/node_modules/express/client.js   Download  
File: chat-websocket/node_modules/express/client.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Terminal Crossword
Generate a crosswords board on a text console
Author: By
Last change:
Date: 2 years ago
Size: 405 bytes
 

Contents

Class file image Download
var http = require('http'); var times = 50; while (times--) { var req = http.request({ port: 3000 , method: 'POST' , headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }); req.on('response', function(res){ console.log(res.statusCode); }); var n = 500000; while (n--) { req.write('foo=bar&bar=baz&'); } req.write('foo=bar&bar=baz'); req.end(); }