237 Commits

Author SHA1 Message Date
yawnt
e3f8d5fdbe [feature] add buffer support 2013-10-26 17:20:30 +02:00
cronopio
02df9a33c5 [fix] fix the correct order of arguments in ws-incoming passes 2013-10-21 23:22:32 -05:00
cronopio
cc09ae6a34 [fix] use the correct arguments order 2013-10-21 21:19:52 -05:00
mmoulton
0bfb9be418 Fixed issue where error callback would not invoke, including new test cases. Added req/res values to error events.
Conflicts:
	lib/http-proxy/passes/web-incoming.js
2013-10-21 17:36:20 -05:00
cronopio
5e130de854 Revert "[fix] fixed passes functions, now 'this' can be used and options are stored on 'this.options'"
This reverts commit 9b3e1eb247df29d18ea299ff4ebb2f10eeb71269.
2013-10-21 14:49:39 -05:00
cronopio
babdf531fe Revert "[fix] fixed options and server reference to can access them from passes functions"
This reverts commit 90fb01d38ac5af7ef395547b24e985b6f63b4abc.
2013-10-21 14:45:03 -05:00
cronopio
2bf20d61d5 Revert "[tests] fix test to use the new way to pass options"
This reverts commit 52ecd52ee5aa78603e44ba8d5ff9187410351622.
2013-10-21 14:44:49 -05:00
cronopio
52ecd52ee5 [tests] fix test to use the new way to pass options 2013-10-21 03:59:14 -05:00
cronopio
9b3e1eb247 [fix] fixed passes functions, now 'this' can be used and options are stored on 'this.options' 2013-10-21 03:46:30 -05:00
cronopio
90fb01d38a [fix] fixed options and server reference to can access them from passes functions 2013-10-21 03:26:54 -05:00
cronopio
86750c7e59 [tests] throw error when no options, ALL TESTS PASSING! YAY 2013-10-10 11:04:17 -05:00
cronopio
c65ffbb976 [tests] fixed inherits problem and listen for the correct event 2013-10-09 12:40:05 -05:00
cronopio
a7042132c8 [tests] fixing tests, fixed some typos and changed how passes are stored 2013-10-09 12:00:42 -05:00
cronopio
b333e63648 [tests] fixing minor typos 2013-10-09 11:04:41 -05:00
yawnt
a9f9e21eda [fix] 2013-10-09 17:37:20 +02:00
yawnt
3d8e5383cd [fix] better code 2013-10-09 17:31:02 +02:00
yawnt
5a1504f076 [fix] minor typo 2013-10-09 17:28:39 +02:00
yawnt
c7924e01f9 [fix] callback as optional error handler 2013-10-09 17:23:44 +02:00
yawnt
601dbcbfe9 [fix] refactor error handling 2013-10-09 16:59:03 +02:00
yawnt
b79bd29d5e [feature] start working on the new server 2013-10-08 22:24:16 +02:00
yawnt
8269eca2bb [fix] tests 2013-09-26 11:13:16 +02:00
indexzero
bb0d28c587 [refactor minor] s/caronte/http-proxy/ or s/caronte/httpProxy/ where appropriate. 2013-09-26 03:37:08 -04:00
yawnt
455f97e14c [fix] finished jshint fixes 2013-09-25 15:11:04 +02:00
yawnt
17399e7c3e [fix] more jshint intendation 2013-09-25 15:08:27 +02:00
yawnt
0aeaba7fe6 [fix] remove trailing whitespaces 2013-09-25 14:58:59 +02:00
yawnt
32dcb0449c Merge pull request #482 from srossross/caronte
[merge] https & agent
2013-09-21 01:49:00 -07:00
cronopio
5dcdf2b36c [doc] added some documentation to functions and comments to understand better the code 2013-09-20 19:28:53 -05:00
srossross
12cda561af ENH: updated agent options in common.setupOutgoing 2013-09-17 14:52:53 -07:00
srossross
7d840d3515 ENH: added 'headers' to available options, to add or overwrite existing headers 2013-09-17 11:45:41 -07:00
srossross
13741a823f ENH: updated https and agent option
Removed logic from createProxyServer and put it into setupOutgoing.

Conflicts:
	lib/caronte.js
2013-09-17 11:23:12 -07:00
yawnt
8663ac1c43 [fix] do not send chunked responses to http1.0 clients 2013-09-17 16:28:54 +02:00
yawnt
afc4d0931f [fix] pooled connections, closes #478 2013-09-17 12:14:52 +02:00
yawnt
2c10f256b6 [fix] write connection header 2013-09-17 10:59:45 +02:00
yawnt
031452e400 [fix] closes #473 2013-09-17 10:31:52 +02:00
yawnt
9efa40a9d2 Merge pull request #476 from nodejitsu/caronte-tests
[merge] caronte tests
2013-09-17 01:23:55 -07:00
srossross
7b9169c8c5 FIX: ws error event 2013-09-16 16:42:53 -07:00
cronopio
275a5192fa [fix] typo 2013-09-16 16:49:51 -05:00
srossross
ef946a7697 ENH: updated target and forward options so that a string may be specified 2013-09-16 10:49:53 -07:00
srossross
268afe34bb ENH: updated ws and web functions to use the global options object as a base
even if request options is specified. request options will over write any global options in a conflict
2013-09-16 10:37:11 -07:00
srossross
1b867a7f59 ENH: added error events 2013-09-15 15:20:51 -07:00
yawnt
29afab4488 [fix] headers, closes #469 2013-09-15 22:07:35 +02:00
yawnt
e08d4edad3 [fix] write status 2013-09-15 18:02:00 +02:00
yawnt
60de543d04 [fix] headers, fixes #467 2013-09-15 17:55:41 +02:00
yawnt
adc5be020c [fix] opts 2013-09-15 17:19:07 +02:00
yawnt
d1663549ec [fix] default port 2013-09-15 13:18:21 +02:00
yawnt
18341d5597 [fix] console 2013-09-15 13:07:24 +02:00
yawnt
26c4c43a06 [fix] proxying to https 2013-09-15 13:06:39 +02:00
yawnt
3c91ed3d26 [fix] proxy to http(s) 2013-09-15 13:03:51 +02:00
Jarrett Cruger
92de6a6f95 [fix] add ability to proxy websockets over HTTPS 2013-09-14 20:46:05 -04:00
yawnt
6e77cd3909 [fix] do not call .end 2013-09-15 00:43:01 +02:00