monkeyWie / proxyee

HTTP proxy server,support HTTPS&websocket.MITM impl,intercept and tamper HTTPS traffic.
MIT License
1.52k stars 567 forks source link

Setting proxyConfig at runtime #120

Closed smichea closed 3 years ago

smichea commented 3 years ago

In order to use another proxy, I see we can set the proxyConfig in the server before starting it. Can we also set it at runtime, for instance in a FullRequestIntercept ?

monkeyWie commented 3 years ago

I think this is simple to implement, just need support set proxyConfig at pipeline and use it, for example:

pipeline.setProxyConfig()

I will implement it recently.

smichea commented 3 years ago

great, thank you

smichea commented 3 years ago

I think there will be a problem with HTTP pipelining, is there a way to set the proxyconfig not only in the scope of the current request but for all requests on the same socket ?

monkeyWie commented 3 years ago

I think is no problem, actually multiple requests will reuse a socket by HTTP keep-alive.