Hoverfly Documentation, Release v1.10.4
(continued from previous page)
Disable quoting and escaping of logged fields
-logs string
Specify format for logs, options are "plaintext" and "json" (default "plaintext")
-logs-file string
Specify log file name for output logs (default "hoverfly.log")
-logs-output value
Specify locations for output logs, options are "console" and "file" (default
˓→"console")
-logs-size int
Set the amount of logs to be stored in memory (default 1000)
-metrics
Enable metrics logging to stdout
-post-serve-action string
Set local post serve action by passing the action name, binary and the path of␣
˓→the action script and delay in Ms separated by space.
(i.e. -post-serve-action "<action name> python3 <script path to load> 1000" -
˓→post-serve-action "<action name> python3 <script path to load> 3000")
Set remote post serve action by passing the action name, remote host and delay␣
˓→in Ms separated by space.
(i.e. -post-serve-action "<action name> <http/https remote host> 1000" -post-
˓→serve-action "<action name> <http/https remote host> 3000")
We can set multiple post serve actions and use in our simulation schema file.
-middleware string
Set middleware by passing the name of the binary and the path of the middleware␣
˓→script separated by space. (i.e. '-middleware "python script.py"')
-modify
Start Hoverfly in modify mode - applies middleware (required) to both outgoing␣
˓→and incoming HTTP traffic
-no-import-check
Skip duplicate request check when importing simulations
-password string
Password for new user
-password-hash string
Password hash for new user instead of password
-plain-http-tunneling
Use plain http tunneling to host with non-443 port
-pp string
Proxy port - run proxy on another port (i.e. '-pp 9999' to run proxy on port␣
˓→9999)
-response-body-files-allow-origin value
When a response contains a url in bodyFile, it will be loaded only if the origin␣
˓→is allowed
-response-body-files-path string
When a response contains a relative bodyFile, it will be resolved against this␣
˓→path (default is CWD)
-spy
Start Hoverfly in spy mode, similar to simulate but calls real server when cache␣
˓→miss
-synthesize
Start Hoverfly in synthesize mode (middleware is required)
-templating-data-source
Set templating CSV data source by passing data source name and CSV data file␣
(continues on next page)
70 Chapter 2. Contents