Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webserver - Capture Request mode #874

Open
nkvp opened this issue Aug 12, 2019 · 2 comments
Open

Webserver - Capture Request mode #874

nkvp opened this issue Aug 12, 2019 · 2 comments

Comments

@nkvp
Copy link

nkvp commented Aug 12, 2019

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.

@ns3777k
Copy link
Contributor

ns3777k commented Aug 31, 2021

As far as I understand:

  1. destination should be set to something static like https://www.google.com.
  2. 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.

@tommysitu
Copy link
Member

tommysitu commented Sep 5, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants