@vapi-ai/http-proxy
Advanced tools
Changelog
1.18.5 - 2024-04-28
#1447
#1397
#1373
#1300
#1135
#1139
#1359
#1072
#1067
#970
#1357
#1365
#1360
#1356
#1358
#1367
#1363
#1267
#1362
#1117
#1147
#1339
#1355
#1264
#1074
#1131
#1120
#1119
#1109
#1104
#1100
#1098
#1099
#1075
#1061
#1050
#1060
#1051
#1009
#1025
#1027
#1024
#1042
#966
#1010
#975
#998
#997
#989
#983
#982
headers
option #974
#967
#806
#950
#962
#961
#932
#947
#948
#934
#943
#942
#940
#825
#922
#912
#910
#901
#904
#903
#897
#893
#892
#870
#863
#852
#823
#817
#759
#799
#787
#798
#792
#789
#1
#756
#625
#752
#751
#749
#716
#741
Content-Length
header for OPTIONS requests #742
#736
#735
#733
options.secure
too #729
#724
#723
#717
#712
#709
#708
#706
#705
#702
#691
///path
. #699
#644
#669
#695
#693
#686
#679
#673
#666
#658
proxyRes
event, provide access to the req and res objects #642
#640
#616
#592
#578
#575
#566
#560
#558
#556
#552
#551
#549
type
to before and after to grab correct passes
, fixes #537 #539
#536
#521
#520
#416
#518
#502
#492
#484
#482
#476
#475
#472
#14
#11
#3
#419
#407
#370
proxyResponse
event #385
#383
#384
#298
#332
#365
#374
#349
#337
#323
#320
#315
#308
#302
#285
#221
#246
target.hostname
over target.host
#235
#275
#268
#270
#266
#256
#218
#216
#225
#222
#208
#205
#189
#165
#164
#163
#136
#134
#118
#114
#110
#109
#73
#52
#930
#890
#955
#996
#747
#747
#772
#758
#711
#750
#738
#748
#671
#657
#657
#606
#603
#559
#555
#553
#547
#537
type
to before and after to grab correct passes
, fixes #537 #537
#341
#529
#341
#511
#510
#483
#478
#459
#473
#474
#469
#467
#8
#399
#402
#195
#60
#338
#373
#359
notFound
event when ProxyTable location does not exist. Fixes #355. Fixes #333. #355
#333
RoutingProxy
. Fixes #248. #248
304
responses since it was fixed in 182dcd3. Fixes #322. #322
response.headers.location
is defined. Fixes #276. #276
.createServer
#321
#137
#137
Transfer-Encoding: chunked
for HTTP/1.0 client, closes #59. #59
#107
x-forward-*
headers for WebSocket requests. Closes #74 #74
setMaxSockets
. Fixes #81 #81
#95
#80
.changeHeaders
option. Fixes #34 #34
a4ee8f9
17399e7
df158bf
ff1626f
42a38b5
ed8c9ee
7e25bde
bc236d7
cd1d777
dc9d7e5
bb0d28c
c82ff2c
b726116
5bb83b9
bdeabb7
f7f5fa7
7e44d36
0393b5d
e02317c
33a2462
d7064f2
588327c
f345a1a
5dcdf2b
0bfb9be
831a44b
8cb451f
0f24351
7c72f3b
881c7e6
0aeaba7
16a4d9d
c75d06c
c65ffbb
e599151
e592c53
b79bd29
f566a42
de3ff11
2142c50
601dbcb
1cb967b
64fa520
1b89bc9
8085178
c7924e0
427d8d8
c9a556c
add8133
61c2889
7e4a0e5
4a37175
31d919b
a9b09cc
2c98416
a05fc2d
a3d0219
ae0faef
10c0f11
10a0db4
bbe3bfd
14415a5
a1b25a1
6c1b5ca
ec683b9
8aa7c51
a704213
f5c2381
7730548
855cebd
cea0e86
1d1ee88
09dcb98
d48f67e
a65021d
402ab05
182c76c
04c1011
26029ba
cde08fb
02007ed
7a3f6df
babdf53
90fb01d
6106d4c
8bff3dd
f2076e9
e5c02b8
71a06aa
73e8a4c
1385635
db12f6c
9bbe486
c62610e
32a4088
da674ec
ece85b4
common.setupOutgoing
12cda56
220f5fb
///path
. 73d865b
584ce76
13741a8
2c10f25
f5217d6
d0862af
f4ff100
7c5e40a
261742a
cfd417d
5f14bca
61c8734
x-forwarded-for-port
. 2d42709
6f88caf
d2f9db8
d0f1dfe
77a1cff
dcb873a
302d981
daad470
5e130de
9b3e1eb
e44fabe
8b48a9f
6a6dfbb
a51b062
39b0c46
410a8ce
81d58c5
a467b7b
cc09ae6
2bf20d6
52ecd52
3d8e538
ca09263
e94d529
02df9a3
89f9ca1
70ed1c4
8be9d94
89f9ef8
d145152
25bb3bf
455f97e
a4bccc3
7e8041d
8332e74
d85ccdd
0602500
000eb53
89a22bc
781c038
03880d8
a9f9e21
c14ab4f
48ae5d8
9ba8311
7b79a74
ccad177
8eb6780
1204a35
1b5fb1d
f36cb4d
68fa17b
7d840d3
59c4403
dd1d08b
bc6a237
f82ce18
9ea1e89
8bfd90c
0ee314c
c33d161
ea0a4de
2653786
84036e9
9a534c6
511b7b3
07fceb7
a81dd8d
9243444
920f1e7
a350fad
8663ac1
6b61878
2c44039
543636d
eea79ca
ab5c3e5
81874f7
9f684d0
ed73f06
bc12ca3
e3f8d5f
7ad5c0f
9afc64d
8231984
3b39d2c
f9540de
9752652
3d2350c
f304861
8a8a894
8d68ac0
3ab6e95
49a0de1
37036dd
d1baa36
e633b0f
d6d2d0c
d23353d
6fa23e1
1333c0c
162a42f
c4d56a5
bbe2b27
86750c7
b333e63
f1aeb05
d533a1b
107c187
c6dfb04
3f19e6e
10a294a
c0a796b
65a21bc
1c7ace2
8eff1a1
b00911c
c5d8466
de1b808
50f58b4
ac1a01b
fbc2668
8eddf45
2d01edc
912cd3a
b98c75b
fcfb0b3
5082acc
e1b2f4c
9d9fa94
268994e
0cb1d3c
f2093b5
41414a5
b5a6d0e
60baca5
30e3b37
ca73208
7e6c66a
d26ef56
607f96c
18c77ca
934e6c4
0bd446c
a6ae6c4
1dabda2
21b30b7
87a92a7
e907d7b
7298510
63c9262
f55ffa3
3311106
f0db5b3
6a330ff
2086e49
56a7b77
276f65a
709b3e9
fa797fc
43641b0
9577a0f
43c6f0c
f0bf741
232258b
e7d50b1
554f59c
df12aeb
d5c656b
dceef40
fc73828
05f0b89
0a6b424
63c53a1
ed9e12b
7104a7c
9df4bc1
7cb98a4
1213e46
c472527
c54278b
d908e2a
97ceeb3
eca765a
4bdc3e4
8004f4e
68c5512
689459f
840f6d8
1457980
7c8ecc8
npm test
while we fix coveralss.io integration e2a5d51
d83fdf6
961d2f9
a2b1f0a
590bb60
d60353f
5d66ce1
5a1504f
8269eca
69f126b
72a89ea
4090250
275a519
da9de70
fc93520
e6f24ba
2f7f037
c86ae51
a934cb6
6b83ae4
4f07dc2
4d65280
dda6f7a
1ceea3e
16d4f8a
c9f5772
38e6d7c
d166354
8b3fe32
07551c6
2a59366
886a870
e45bfd6
a74cd85
79a14ac
dad211e
79f7f99
7599cee
27df8d7
c4ddc4e
07091b5
07cfa6b
3a39e44
ec981c5
1a7bef0
4a4607d
e0faaaf
b85aa16
8c8c455
edd8e2f
1b867a7
e08d4ed
8931009
ws
and web
functions to use the global options object as a base 268afe3
f97c0c6
c9cd6d2
ef946a7
57abb7f
4d3a4e1
ee3cc38
aaff196
26c4c43
7d71a86
a6256ca
8b05626
bd106d6
5823842
6e77cd3
031aa0f
abf1d90
6a03e5f
adc5be0
0637322
dd0f7b8
d7078e2
98f29bd
1993faf
18341d5
3c91ed3
4c2f2f3
0fb3381
4ae7a5b
2d75510
e2dc7f9
too many var statements
36226da
fd648a5
ea7fea6
daf9231
RoutingProxy
object to be exposed by node-http-proxy
5927ecd
f765f90
http*-to-http*
testing from CLI arguments 828dbeb
ec03d72
543f214
734769f
598fe2e
2bd9cd9
5575bcf
test-http-proxy
test feb324b
https
by default. 55286a7
test-http
test 25a9e2d
13eaec5
test-http-host-headers
test f298411
04ce49c
6797a27
698b01d
test-http-extra-response
test c26ab5e
test-http-set-cookies
test b3b5cce
1332409
test-http-client-abort
test 7bf8d4a
test-http-client-upload
test 7648fe5
916d44e
test-http-client-upload-buf
test 5ac9878
test-http-upgrade-server2
test bc98c0d
a4079c6
test-http-upload-timeout
test 60ff181
test-http-status-code
test 82060a5
ecb5472
test-http-many-keep-alive-connections
test 4e1ca6e
test-http-chunked
test d7461f3
6a7fd14
test-http-head-response-has-no-body-end
test 13389db
test-http-server-multiheaders
test d7f15d0
test-http-multi-line-headers
test 35d2088
c81bae2
test-http-head-response-has-no-body
test f79f3ad
621f9b4
c83d88e
9f92332
886a395
common.js
from node core fefbf04
test-http-malformed-request
test a635389
87999d0
dd83199
6e65c20
test-http-head-request
test c0857f2
ws*-to-ws*
tests based on CLI arguments 7e854d7
test-http-response-close
test f1c0be3
6201328
e9fd3f4
63ac925
2b9e09b
37e2541
66e9820
test-http-contentLength0
test 275109b
test-http-client-abort2
test 98bbe54
91e9bb9
test-http-eof-on-connect
test 80c216d
83fbd42
24ef919
fd7fcd8
558a8a4
ffe74ed
7bda25b
8fc8d96
27316e2
03dbe11
f4fcf93
4c8e1d9
4f2bc58
2e8d4c6
ca1d12c
3b84e27
sys
usages with util
8d701bb
84be9f2
2055d0c
5b52c89
6753951
ef66833
b26b434
0c71119
603106a
74ec175
2937229
e1c41d0
c6da760
a681493
64efa7f
0e36912
5df6e7b
socket
events since reverseProxy.socket is no longer set synchronously 3828616
destroy()
websockets in case of an error 0d00b06
close()
method which cleans up sockets from HttpProxy instances 0eae2a9
test/examples-test.js
since we are just looking for require-time errors. Isolate tests to ensure idempotency of ports c4a7b15
test/core/simple
by default 68cebbe
07c8d2e
b8c27ed
d4cb9da
3531fd6
bf7e328
c03a450
29e6e74
4d50915
edfe869
8ca5d83
Agent
constructor eafdc74
850171c
ed06af9
colors.mode
48d4a8b
9e630da
24b8406
0273958
06e78f2
5d839dd
868f7e7
5c3d41b
http.Agent
uses different structure for sockets 86b4122
553e7fb
549360a
d2888c8
2e7d8a8
e9a3a30
4d43d81
31a8c68
c98ccb4
b7adf86
45ef87e
2677bb6
38315f6
2a61ec8
devDependencies
b81d9b7
-i
when running vows because it supresses --target=
and --proxy=
CLI arguments 1783ab0
415d4ed
7fa6599
73e415a
6e1ade0
.bind()
340be42
node v0.9
testing, test all branches 4f6387c
npm test
8358ef8
d6ea3a4
182dcd3
0182ba3
deca756
31fc94a
0933f1c
45d67f4
ca37ad7
843901e
e15db4f
5055689
38bd906
e109eba
2ccc5c7
1e33434
30dac89
3ab02f3
f27d26f
x-forward-*
headers if req.connection and req.connection.socket de4a6fe
req.connection
for all x-forward-* headers f6dc12a
setEncoding
on incoming socket 812868d
99ee542
63dfc7f
agent.appendMessage()
6655e01
ee6bbe0
15afc23
26d3646
error
listener after response ends 223eacd
6cd78f6
7bc1a62
22639b3
npm test
41c9a9c
4d7e8a8
213e03c
a89a5b8
a454666
13c34d0
81f6095
4fc1ee8
4358a4c
5842d0e
c4124da
b76680b
2061c71
c5dc929
b4d41c3
65b7872
3dfba2b
729496d
db185bb
ccccc45
1f33943
5ba25aa
bdf48be
00e34a1
2cd8256
6c1c554
967884c
216d46d
ba65a48
9672b99
8d87399
node v0.9
, tests timeout 9042665
cee27fe
df650d1
f188f4f
f7010e5
host:port
location d2b0e43
28f6dc1
f0917a3
a5e1e3e
websocket:*
on important WebSocket events. Added tests for these features and updated some code docs 4f85ca0
bf68dc3
f0649d8
44a8566
be4562d
2cf4e0a
020290a
config.https
212009d
4d18ac1
c5fd368
1ee6bef
faf2618
error
handler to reverseProxy request when proxying WebSockets to prevent unhandled ParseError. Rename some variables in proxyWebSocketRequest to make the code more readable 76580c2
fcfe846
1ee8ae7
efa17ef
4cc18f4
bd45216
abc01bc
c773eed
b54666f
45f3df8
74120d8
2626308
upgrade
event from this bookkeeping 85223ea
91737fa
6ec8d6c
proxyError
event 4cdbf0e
d3c0697
9e36d2d
changeOrigin
option is set explicitly. Added tests to ensure Origin and sec-websocket-origin headers match when proxying websockets. 9c6c4b9
ff82946
895f577
7976de1
8eaec35
db10c4a
pkginfo
. Minor updates to variable scoping in .createServer()
5d0bbb3
webSocketProxyError
from a single helper function on any of the various error
events in the proxy chain 5d2192e
6e679c8
12064d8
887c580
9ab54ab
proxyError
event and enable production error handling. 652cca3
f6484de
028d204
be3a0d8
baf0b9e
9d9509f
b4ac4d4
ab8c264
6c80177
8b48b7e
x-forwarded-proto
and x-forwarded-port
to proxied HTTP requests 421895f
bd6a262
b5d5eaa
404818b
40dc9de
642e158
ddf31b2
0f8fe8e
e6c52d4
2012588
localhost
a1cdf00
caa1f49
e3d95ec
03b9087
stack
so it can be used with HttpProxy instances not created by httpProxy.createServer()
5d6e6b9
ee3506a
57ca62c
6fd272a
7bf0cae
d5b9ba7
57127a3
2caa5d2
b8f8499
f7452bc
76ecb51
Connection: close
now that Keep-Alive is supported a86d18b
c04eec1
e90cbd6
332d2d7
d08c2bb
1389b70
d8068a8
fea371d
e6ff8d6
5ba0f89
549bfea
25c06a3
03475a5
5d33ad7
b608a02
7b574d3
653c6ca
a865fe6
0911c17
x-forwarded-for
from req.connection.socket.remoteAddress if req.connection.remoteAddress is not defined e9b3ec9
f1c0f64
acacc05
32a15dd
d9fa261
360e79a
521fe27
ac425d7
e39a9f9
6e4bf6a
3bc7d16
bedc7a3
8c3e993
c06f4bf
66afb2a
5715318
8251296
7249ef3
a9084b9
9faa924
b0b0183
9f0aeac
4110448
.proxyRequest()
and .proxyWebSocketRequest()
APIs to take an options hash instead of a set of arguments. Add HTTPS support. cfddd12
7c2eb5d
973f19f
f84880f
00014d6
6c42f04
73381cf
c485c87
cd78af5
close
until keep-alive is replemented 3fd3c96
cbb5fbc
a89b397
56003b5
389159d
0d1a3fe
69c162d
dd1918d
d8c5406
de53d5e
34cba38
eyes
dependency. a5d88aa
7e61f0c
request
event to be consistent by emitting both req
and res
. Add x-forwarded-for
header. a3cb527
60791f3
9128a8c
711258e
1dd9b3b
3588687
5d54ea5
4069a7e
f8bff4c
end
event when done proxying 5681fc1
8ef2e1f
0e7f362
266e524
7b0ea85
32aaf74
7cbf447
3bb458e
6d47d98
fd61828
1221939
a255f98
335af81
9cecd97
5d94ae2
d490b50
30b68c1
4d13156
d05af4a
c4b7c0d
85f7372
994f748
bbed176
a29b5e8
972c8c0
d0ad931
095e86a
8273cb6
7fc39d7
d4f0da8
356f43d
2fb5ffb
b1eb13e
2f265a2
89d43c2
c961279
c887a75
9ab8749
ead7567
2f49810
6e651f4
cedc5c4
985025c
bde98f4
d40e4be
8fc3389
341bbd4
2fac7b9
4f24664
16eacfa
46b078a
5e6be6c
fca40da
004a46c
b622702
d6a2f8a
da55777
a1607c1
c02b721
v0.9.0
. 133115c
e9511ea
6a4294c
10f6b05
dce80b9
76d0649
2c36507
d15bba4
6d08f24
8665f3c
eaeed83
476cbe7
3b86a7a
9715ebd
6661753
15c18b6
daf53bd
devDependencies
ad21310
ea0587a
eb39018
f291efb
07d96bb
1594367
fb8c5ab
b195a16
82b8228
93505a4
9bc5b6f
34f16e7
35ba0db
ede6490
v0.9.1
ea5e214
bd3df45
ebbba73
proxyResponse
event on the HttpProxy instance to reduce listener churn and reference counts. 2620f06
4c130f5
4480699
2e7343d
2fd748f
maxSockets
from target
options in RoutingProxy
e1d384e
de0928f
9c13ad4
71183bf
c9b6895
701dc69
webSocketProxyError
also receives the error to be consistent with proxyError
events. c78356e
c68e038
README.md
. 440013c
0ba5023
7beead5
40c51a7
d408e39
9aa2216
0a2eaaa
ddba155
c8dd8c4
1e04552
6a1baa2
17b6c69
4e42354
b1c4bd6
async
219b0ff
3a4d312
5bf2d59
198000f
abf882e
test/core/{run => run-single}
004be38
81d6c31
2e2b55f