Skip to content

Webserver - Capture Request mode #874

Open

Description

@nkvp

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.

Activity

  1. ns3777k commented on Aug 31, 2021

    @ns3777k
    Contributor

    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.

  2. tommysitu commented on Sep 5, 2021

    @tommysitu
    Member

    @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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions