Jarrett Cruger
261742a429
[fix] cleanup and stylize close function
2014-08-14 17:16:56 -04:00
Jarrett Cruger
f92f7aea9b
Merge pull request #679 from RackspaceEmailAndApps/close_proxy
...
Added functionality to close proxy.
2014-08-14 17:12:42 -04:00
John Catron
8be9d945d0
updated close function for safety
2014-08-14 20:12:20 +00:00
Jarrett Cruger
37036dd325
[fix] emit an error if proper URL is not passed in as a target
2014-08-14 13:32:32 -04:00
John Catron
a3d02196c5
Added close method to proxy server.
...
Ensured server exists before closing.
Updated tests to use new close function.
Added documentation to README.
2014-08-14 17:30:38 +00:00
Manu Sporny
db5f2954b2
[api] Add event-based ability to modify pre-flight proxy requests.
2014-07-18 11:46:04 -04:00
Jarrett Cruger
5f838541cb
do proper checking for a pass not existing. fixes #671
2014-07-17 10:56:53 -04:00
Jarrett Cruger
d1baa3684e
[api] also emit the target on a proxy error
2014-07-08 16:12:57 -04:00
Damian Kaczmarek
7b79a7409a
Change name targetTimeout to proxyTimeout
2014-06-10 19:04:12 +02:00
Damian Kaczmarek
0f243516e1
Added targetTimeout option and two tests for timeout
2014-06-10 01:35:53 +02:00
Bryce Gibson
1213e46b1b
Add the req and res objects to the proxyRes event
2014-05-12 08:22:54 +10:00
Jarrett Cruger
ccad177954
[minor] style
2014-05-11 01:02:35 -04:00
Jay Harris
d637b96420
Don't override connection header if Upgrading
2014-05-09 20:48:30 -04:00
Jarrett Cruger
77a1cff9bc
[fix] handle error on incoming request as well and properly abort proxy if client request is aborted
2014-04-14 13:08:10 -04:00
Jarrett Cruger
4f07dc220d
[fix] let user make the decision on what to do with the buffer
2014-04-10 20:02:46 -04:00
Jarrett Cruger
8b48a9fdab
[api] emit a start an an end event
2014-04-09 13:38:13 -04:00
Jarrett Cruger
c6b7a7919f
[fix] always be an eventemitter for consistency fixes #606
2014-04-09 13:37:27 -04:00
Jarrett Cruger
eca765a856
[minor] missing angle bracket
2014-03-26 22:48:35 -04:00
Jarrett Cruger
5251a238e7
Merge branch 'customizeOutgoingAddress' of github.com:sberan/node-http-proxy into sberan-customizeOutgoingAddress
...
Conflicts:
lib/http-proxy.js
lib/http-proxy/common.js
2014-03-26 22:30:11 -04:00
Jarrett Cruger
89a22bc003
[fix] set connection to CLOSE in cases where the agent is false.
2014-03-26 22:07:09 -04:00
Jarrett Cruger
a7b16eb136
[api] add toProxy method to allow absolute URLs to be sent when sending to another proxy fixes #603
2014-03-26 21:59:10 -04:00
Alexander
99f757251b
Fix for #591
...
Fix for proxy crash if `HOST` header is not defined bug https://github.com/nodejitsu/node-http-proxy/issues/591 .
2014-02-26 15:12:38 +02:00
Sam Beran
e633b0f7e4
Add support for localAddress
...
When we make outgoing requests, we may want to bind to a specific local
address. This change allows the localAddress property to be specified
via the options object.
2014-02-11 15:01:03 -06:00
David Glasser
4c3ba74c4e
Close outgoing ws if incoming ws emits error
...
Fixes #559 , which contains a full reproduction recipe.
2014-01-28 13:58:09 -05:00
Jarrett Cruger
daad4703f3
[fix] replicate node core behavior and throw an error if the user does not add their own error listener
2014-01-28 12:32:43 -05:00
David Glasser
0b223abb65
Fix argument order for ws stream pass
...
head and error handling was broken before this commit.
2014-01-22 15:28:23 -08:00
p-a-c-o
96ea631fb6
Extend listen to enable IPv6 support.
2014-01-21 20:35:49 +01:00
alevicki
c5ec1836b2
Fix before and after type check
2014-01-20 10:24:53 -06:00
yawnt
e936d186b6
[fix] closes #555
2014-01-19 11:49:26 +01:00
yawnt
689459fe46
typo
2014-01-17 22:18:54 +01:00
yawnt
53a2653b5e
[fix] closes #553
2014-01-17 22:18:20 +01:00
yawnt
d23353d980
[fix] ee3 error handling
2014-01-16 15:05:52 +01:00
yawnt
4351ed1c86
[fix] closes #547
2014-01-16 15:03:44 +01:00
Mike Moulton
969a623542
Only emit response if a valid server is present
2014-01-14 00:45:42 -07:00
Jarrett Cruger
c47adac391
[fix] add type to before and after to grab correct passes, fixes #537
2013-12-29 16:00:30 -05:00
Jarrett Cruger
6fa23e11f6
[fix] comments
2013-12-27 19:04:44 -05:00
Jarrett Cruger
182c76cd23
[api] export the httpProxy.Server as the main export but preserve the createServer factory
2013-12-27 19:01:28 -05:00
yawnt
162a42f58f
[fix] legacy
2013-12-20 21:33:49 +01:00
yawnt
9e74a633a7
[fix] closes #529
2013-12-18 12:45:41 +01:00
yawnt
97e4600e94
[fix] fixes #341
2013-12-18 12:33:23 +01:00
yawnt
10c0f11b68
[fix] remove duplicate
2013-11-19 20:05:46 +01:00
Ben Firshman
cb7af4f4d7
Fix websocket error handing
...
Websockets have sockets, not responses.
2013-11-18 23:06:56 +00:00
yawnt
961d2f9400
[fix] support target and forward
2013-11-08 20:56:26 +01:00
cronopio
fd42dcef01
[tests] https test pass, fix #511 . Exposed the rejectUnauthorized flag
2013-11-07 15:09:37 -05:00
yawnt
d0862aff0c
[fix] merge #495 , thanks @glasser
2013-11-07 19:13:09 +01:00
yawnt
cde08fb2ee
[fix] closes number #487
2013-11-07 19:05:59 +01:00
yawnt
590bb604da
[fix] _ because it is unused
2013-11-07 19:00:01 +01:00
Jarrett Cruger
b8c6397a94
[fix] pass proper options object that extend the global options and parse the per proxy args into options. fixes #510
2013-11-05 16:30:39 -05:00
yawnt
dda6f7a45a
[feature] add emit proxyRes
2013-11-05 17:44:04 +01:00
yawnt
1204a35e46
[fix] support buffer
2013-10-29 18:12:23 +01:00