Hoverfly as a webserverΒΆ

Sometimes you may not be able to configure your client to use a proxy, or you may simply want to explicitly point your application at Hoverfly. For this reason, Hoverfly can run as a webserver.

../../_images/webserver.mermaid.png

Note

When running as a webserver, Hoverfly cannot capture traffic (see Capture mode) - it can only be used to simulate APIs (see Simulate mode). For this reason, when you use Hoverfly as a webserver, you should have Hoverfly simulations ready to be loaded.

When running as a webserver, Hoverfly strips the domain from the endpoint’s URL. So for example, if while capturing traffic with Hoverfly running as a proxy you made requests to:

http://echo.jsontest.com/key/value

And Hoverfly is running as a webserver on:

http://localhost:8888

Then the URL you would use to retrieve the data from Hoverfly would be:

http://localhost:8500/key/value

See also

Please refer to the Running Hoverfly as a webserver tutorial for a step-by-step example.