hoverfly
hoverfly copied to clipboard
Webserver - Capture Request mode
Is your feature request related to a problem? Please describe. Currently we do not have a capture request mode in webserver. The system I work on does not support proxying. Hence it becomes difficult to capture request due to this.
Describe the solution you'd like A capture request mode when hoverfly is run as webserver. We should have the possibility of regexp matching the request, sending too destination, receiving response, logging it, returning to client, while running as webserver
Describe alternatives you've considered Wiremock and other proxy tools have this feature where you could match a regular expression and if matched, proxy to another system.
As far as I understand:
-
destination
should be set to something static like https://www.google.com. - When a request comes in we need only to replace the host and scheme with ones from the
destination
.
Basically, that's a simple recording proxy to single destination (unless changed via api), right? @tommysitu Seems easy to implement.
@ns3777k it's going to need a recording proxy behind the web server. The web server will rewrite the path dynamically based on the destination provided by the user in a request header field, forward the incoming request to the new destination while also recording the data.