chhsiao90 / nitmproxy

Proxy server based on netty
MIT License
152 stars 68 forks source link

How to modify the request then forward to server? #144

Open wuxudong opened 2 years ago

wuxudong commented 2 years ago

@chhsiao90 , NitmProxyListener can intercept the request and return a response instead of sending it to server by using Optional<FullHttpResponse> onHttp1Request(ConnectionContext connectionContext, FullHttpRequest request),

but how can I modify the request then forward to server? For example, add a signature header to original request.

Thanks for your great work.