Applying a delay to all responsesΒΆ

Let’s apply a 2 second delay to all responses. Save the following inside delays.json:

    {
      "data": [
        {
          "urlPattern": ".",
          "delay": 2000
        }
      ]
    }

Now run the following:

hoverctl start
hoverctl mode capture
curl --proxy localhost:8500 http://time.jsontest.com
hoverctl mode simulate
hoverctl delays delays.json
curl --proxy localhost:8500 http://time.jsontest.com
hoverctl stop

Notice the 2 second delay on the response.