Skip to content

Commit

Permalink
Replace http-browserify with stream-http
Browse files Browse the repository at this point in the history
stream-http uses new-style streams to provide true streaming or
pseudo-streaming in as many browsers as possible.

It uses the new fetch api with native browser streams where available
(currently only chrome supports this combination) and various
browser-specific xhr extensions to make binary-safe streaming
work where possible.

It is tested and working with at least basic functionality
back to IE8.
  • Loading branch information
jhiesey committed Jul 14, 2015
1 parent 039ce80 commit 918d62e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/builtins.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports.dns = require.resolve('./_empty.js');
exports.domain = require.resolve('domain-browser');
exports.events = require.resolve('events/');
exports.fs = require.resolve('./_empty.js');
exports.http = require.resolve('http-browserify');
exports.http = require.resolve('stream-http');
exports.https = require.resolve('https-browserify');
exports.module = require.resolve('./_empty.js');
exports.net = require.resolve('./_empty.js');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"glob": "^4.0.5",
"has": "^1.0.0",
"htmlescape": "^1.1.0",
"http-browserify": "^1.4.0",
"stream-http": "^1.2.0",
"https-browserify": "~0.0.0",
"inherits": "~2.0.1",
"insert-module-globals": "^6.4.1",
Expand Down
2 changes: 1 addition & 1 deletion readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ When you `require()` any of these modules, you will get a browser-specific shim:
* [crypto](https://www.npmjs.com/package/crypto-browserify)
* [domain](https://www.npmjs.com/package/domain-browser)
* [events](https://www.npmjs.com/package/events)
* [http](https://www.npmjs.com/package/http-browserify)
* [http](https://www.npmjs.com/package/stream-http)
* [https](https://www.npmjs.com/package/https-browserify)
* [os](https://www.npmjs.com/package/os-browserify)
* [path](https://www.npmjs.com/package/path-browserify)
Expand Down

0 comments on commit 918d62e

Please sign in to comment.