Network condition simulation lets you apply artificial latency, bandwidth limits, or packet loss to proxied traffic. Use this to test how your app behaves on slow or unreliable connections without leaving your desk.
apxy network
Simulate network conditions on the running proxy
Options
-h, --help help for networkOptions inherited from parent commands
--config string config file (default is ./configs/default.yaml)
--error-format string error output format: text|json (default "text")
--help-format string help output format: default|agent (default "default")
--output string output format: agent|human (default: auto-detect via TTY)
--verbose enable verbose outputSEE ALSO
- apxy - HTTPS proxy for capturing, inspecting, and modifying API traffic
- apxy network clear - Clear simulated network conditions
- apxy network set - Apply simulated network conditions to proxied traffic
apxy network clear
Clear simulated network conditions
Synopsis
Remove all simulated network conditions, restoring normal proxy throughput.
apxy network clear [flags]Examples
apxy network clearOptions
--control-url string control API URL (default "http://127.0.0.1:8081")
--dry-run preview what would happen without executing
-h, --help help for clearOptions inherited from parent commands
--config string config file (default is ./configs/default.yaml)
--error-format string error output format: text|json (default "text")
--help-format string help output format: default|agent (default "default")
--output string output format: agent|human (default: auto-detect via TTY)
--verbose enable verbose outputSEE ALSO
- apxy network - Simulate network conditions on the running proxy
apxy network set
Apply simulated network conditions to proxied traffic
Synopsis
Apply simulated network conditions to all proxied traffic for testing under degraded networks.
Flags: —latency artificial latency in milliseconds added to each request —bandwidth bandwidth limit in kbps (0 = unlimited) —packet-loss packet loss percentage from 0 to 100
apxy network set [flags]Examples
apxy network set --latency 200
apxy network set --latency 500 --bandwidth 256 --packet-loss 5Options
--bandwidth int bandwidth limit in kbps
--control-url string control API URL (default "http://127.0.0.1:8081")
-h, --help help for set
--latency int artificial latency in ms
--packet-loss int packet loss percentage 0-100Options inherited from parent commands
--config string config file (default is ./configs/default.yaml)
--error-format string error output format: text|json (default "text")
--help-format string help output format: default|agent (default "default")
--output string output format: agent|human (default: auto-detect via TTY)
--verbose enable verbose outputSEE ALSO
- apxy network - Simulate network conditions on the running proxy
Last updated on