http module compatability for browserify
The http module from node.js, but for browsers.
this module will be loaded.
var http = ;http;
var http = require('http');
options can have:
The callback will be called with the response object.
A shortcut for
optionsmethod = 'GET';var req = http;req;
Set an http header.
Write some data to the request body.
Close and send the request body, optionally with additional
data to append.
Return an http header, if set.
key is case-insensitive.
This module has been tested and works with:
Multipart streaming responses are buffered in all versions of Internet Explorer
and are somewhat buffered in Opera. In all the other browsers you get a nice
unbuffered stream of
"data" events when you send down a content-type of
multipart/octet-stream or similar.
You can do:
var bundle =;
in order to map "http-browserify" over
require('http') in your browserified