Created
February 19, 2015 04:51
-
-
Save olivierrr/870d6642d6678fdf3bbd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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