Skip to content

Instantly share code, notes, and snippets.

@dylanbathurst
Created April 29, 2012 01:01
Show Gist options
  • Select an option

  • Save dylanbathurst/2523031 to your computer and use it in GitHub Desktop.

Select an option

Save dylanbathurst/2523031 to your computer and use it in GitHub Desktop.
var buffer = '';
var req = http.request(opts, function (res) {
res
.on('data', function (chunk) {
buffer += chunk;
})
.on('end', function () {
httpResponse.write(buffer);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment