Modify mode

Note

Hoverfly cannot be set to Modify mode when running as a webserver (see Hoverfly as a webserver).

Modify mode is similar to Capture mode, except it does not save the requests and responses. In Modify mode, Hoverfly will pass each request to a Middleware executable before forwarding it to the destination. Responses will also be passed to middleware before being returned to the client.

../../../_images/modify.mermaid.png

You could use this mode to “man in the middle” your own requests and responses. For example, you could change the API key you are using to authenticate against a third-party API.