Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

simplify the examples and track symlinks

  • Loading branch information...
commit dc14a16ef3421a0ad9604c33c4ec61ef2576fa5e 1 parent 24c2e80
@substack authored
View
2  example/get/main.js
@@ -1,4 +1,4 @@
-var http = require('http');
+var http = require('http-browserify');
http.get({ path : '/beep' }, function (res) {
var div = document.getElementById('result');
View
1  example/get/node_modules/http-browserify
View
6 example/get/server.js
@@ -8,11 +8,7 @@ app.get('/beep', function (req, res) {
});
var browserify = require('browserify');
-var bundle = browserify({
- entry : __dirname + '/main.js',
- require : { http : 'http-browserify' },
- watch : true
-});
+var bundle = browserify(__dirname + '/main.js');
app.use(bundle);
console.log('Listening on :8082');
View
2  example/headers/main.js
@@ -1,4 +1,4 @@
-var http = require('http');
+var http = require('http-browserify');
var opts = { path : '/beep', method : 'GET' };
var req = http.request(opts, function (res) {
View
1  example/headers/node_modules/http-browserify
View
6 example/headers/server.js
@@ -11,11 +11,7 @@ app.get('/beep', function (req, res) {
});
var browserify = require('browserify');
-var bundle = browserify({
- entry : __dirname + '/main.js',
- require : { http : 'http-browserify' },
- watch : true
-});
+var bundle = browserify(__dirname + '/main.js');
app.use(bundle);
console.log('Listening on :8082');
View
2  example/post/main.js
@@ -1,4 +1,4 @@
-var http = require('http');
+var http = require('http-browserify');
var n = 100;
var opts = { path : '/plusone', method : 'post' };
View
1  example/post/node_modules/http-browserify
View
6 example/post/server.js
@@ -15,11 +15,7 @@ app.post('/plusone', function (req, res) {
});
var browserify = require('browserify');
-var bundle = browserify({
- entry : __dirname + '/main.js',
- require : { http : 'http-browserify' },
- watch : true
-});
+var bundle = browserify(__dirname + '/main.js');
app.use(bundle);
console.log('Listening on :8082');
View
2  example/streaming/main.js
@@ -1,4 +1,4 @@
-var http = require('http');
+var http = require('http-browserify');
http.get({ path : '/doom' }, function (res) {
var div = document.getElementById('result');
View
1  example/streaming/node_modules/http-browserify
View
6 example/streaming/server.js
@@ -17,11 +17,7 @@ app.get('/doom', function (req, res) {
});
var browserify = require('browserify');
-var bundle = browserify({
- entry : __dirname + '/main.js',
- require : { http : 'http-browserify' },
- watch : true
-});
+var bundle = browserify(__dirname + '/main.js');
app.use(bundle);
console.log('Listening on :8082');
View
2  package.json
@@ -11,7 +11,7 @@
},
"devDependencies" : {
"express" : "2.5.x",
- "browserify" : "1.4.x"
+ "browserify" : "1.9.x"
},
"repository" : {
"type" : "git",
Please sign in to comment.
Something went wrong with that request. Please try again.