Vapor and Charles Proxy/Proxyman

Hi there,

I have a question related Vapor.

usually I use either Charles or Proxyman to modify response from API during iOS development.

but when I develop web app with vapor, I cannot see any API that gets called from my Vapor web app, neither in proxyman nor charles.

Can anyone give me suggestion what tools I can use to modify response? so my QA can test my web app.

sorry for bad English, thank you very much

To set up a proxy connection you need to configure the AsyncHTTPClient with proxy details (assuming you mean all your req.client() calls). There’s a proxy option in the configuration which is at https://github.com/swift-server/async-http-client/blob/main/Sources/AsyncHTTPClient/HTTPClientProxyHandler.swift#L30