Permalink
Browse files

Replace http-browserify with stream-http

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...
1 parent 039ce80 commit 918d62e804e0e735708e24fe53a78bca0400b7e5 @jhiesey jhiesey committed Jul 12, 2015
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/builtins.js
  2. +1 −1 package.json
  3. +1 −1 readme.markdown
View
@@ -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');
View
@@ -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",
View
@@ -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)

0 comments on commit 918d62e

Please sign in to comment.