-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[refactor minor] s/caronte/http-proxy/ or s/caronte/httpProxy/ where …
…appropriate.
- Loading branch information
Showing
18 changed files
with
99 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
var caronte = require('caronte'); | ||
var httpProxy = require('http-proxy'); | ||
/* | ||
* Create your proxy server pointing to a secure domain | ||
*/ | ||
var options = {target:'https://google.com'}; | ||
|
||
var proxyServer = caronte.createProxyServer(options); | ||
var proxyServer = httpProxy.createProxyServer(options); | ||
console.log("Proxy server listening on port 8000"); | ||
proxyServer.listen(8000); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
{ | ||
"name" : "caronte", | ||
"version" : "0.0.0", | ||
"name" : "http-proxy", | ||
"version" : "1.0.0", | ||
"description" : "HTTP proxying for the masses", | ||
"author" : "yawnt <[email protected]>", | ||
|
||
"author": "Nodejitsu Inc. <[email protected]>", | ||
"maintainers" : [ | ||
"yawnt <[email protected]>", | ||
"indexzero <[email protected]>" | ||
], | ||
|
||
"main" : "index.js", | ||
|
||
"dependencies" : { | ||
|
@@ -24,7 +28,7 @@ | |
}, | ||
"scripts" : { | ||
"coveralls" : "mocha --require blanket --reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js", | ||
"blanket" : { "pattern": "lib/caronte" }, | ||
"blanket" : { "pattern": "lib/http-proxy" }, | ||
"test" : "./node_modules/.bin/mocha -R landing test/*-test.js", | ||
"test-cov" : "./node_modules/.bin/mocha --require blanket -R html-cov > cov/coverage.html" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.