Examples
Steps for invoking local post serve action
Install the python requests library via pip
Start hoverfly by passing a post-serve-action, and a simulation file that invokes post serve action by its name.
You can verify that the post serve action is registered by using the admin endpoint: http://localhost:8888/api/v2/hoverfly/post-serve-action
Proxying a request to http://helloworld-test.com should trigger a callback to http://ip.jsontest.com, and the log from the post serve action script should be printed out to the hoverfly logs:
Steps for invoking remote post serve action
Start hoverfly by passing a remote post-serve-action, and a simulation file that invokes post serve action by its name.
You can verify that the post serve action is registered by using the admin endpoint: http://localhost:8888/api/v2/hoverfly/post-serve-action
Proxying a request to http://helloworld-test.com should invoke remote postserve action to https://echo.free.beeceptor.com, and the log should be printed out to the hoverfly logs:
Last updated