Applying different delays based on URIΒΆ

Instead of adding specific delays to hosts, we can also add varying delays to various locations.

{
  "data": [
    {
      "urlPattern": "echo\\.jsontest\\.com\\/a\\/b",
      "delay": 2000
    },
    {
      "urlPattern": "echo\\.jsontest\\.com\\/b\\/c",
      "delay": 2000,
      "httpMethod": "GET"
    },
    {
      "urlPattern": "echo\\.jsontest\\.com\\/c\\/d",
      "delay": 3000,
      "httpMethod": "GET"
    }
  ]
}
hoverctl start
hoverctl mode capture
curl --proxy localhost:8500 http://echo.jsontest.com/a/b
curl --proxy localhost:8500 http://echo.jsontest.com/b/c
curl --proxy localhost:8500 http://echo.jsontest.com/c/d
hoverctl mode simulate
hoverctl delays delays.json
curl --proxy localhost:8500 http://echo.jsontest.com/a/b
curl --proxy localhost:8500 http://echo.jsontest.com/b/c
curl --proxy localhost:8500 http://echo.jsontest.com/c/d