Skip to content

Instantly share code, notes, and snippets.

@olivierrr
Created February 19, 2015 04:51
Show Gist options
  • Save olivierrr/870d6642d6678fdf3bbd to your computer and use it in GitHub Desktop.
Save olivierrr/870d6642d6678fdf3bbd to your computer and use it in GitHub Desktop.
//client
var l = require('hyperquest')({
method: 'post',
uri: 'http://localhost:9983',
withCredentials: false
})
l.on('data', function(a){console.log(a.toString())})
l.on('error', console.log)
// server
var server = require('http').createServer(handle);
function handle(req, res) {
console.log('something is happeninggggggggg')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment