nitmproxy icon indicating copy to clipboard operation
nitmproxy copied to clipboard

How to modify the request then forward to server?

Open wuxudong opened this issue 2 years ago • 0 comments

@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.

wuxudong avatar Apr 21 '22 03:04 wuxudong