You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.
consttoxy=require('toxy')consthttp=require('http');constproxy=toxy()construles=proxy.rulesconstpoisons=proxy.poisonsproxy.forward('http://httpbin.org')proxy.all('/*')proxy.listen(3000)console.log('Server listening on port:',3000)
...doesn't work.
When connecting with curl:
curl -vvv http://localhost:3000/
* Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 3000 (#0)
> GET / HTTP/1.1
> Host: localhost:3000
> User-Agent: curl/7.64.1
> Accept: */*
>
* Empty reply from server
* Connection #0 to host localhost left intact
curl: (52) Empty reply from server
* Closing connection 0
Works fine with node v10.
The text was updated successfully, but these errors were encountered:
toxy is no longer actively maintained, I'm sorry. Although, it can be easily adapted to work with node v14+, but it would be quicker to use other maintained solutions out there, such as toxiproxy
Thanks for your fast reply! I also went with toxiproxy. That's a pity, because toxy is a really cool tool, and even seems to support more features than toxyproxy. Maybe you could put a note on top of the readme warning people that it's no longer maintained and not working on latest Node.js, or looking for maintainer, if you are open for someone taking over:)
This example https://github.com/h2non/toxy/blob/master/examples/bandwidth-limit.js or even this simple code:
...doesn't work.
When connecting with curl:
Works fine with node v10.
The text was updated successfully, but these errors were encountered: