Rules and scripts
Rules can:
- rewrite headers, body, or status
- mock responses
- map remote hosts
- add delays
- block requests
They live in rules.toml (or rules.json) in the config directory. sieve watches the file, so edits apply right away. You can also edit rules from the web UI.
Breakpoints
Section titled “Breakpoints”Pause a request, edit it in the UI, then continue or abort.
Scripts
Section titled “Scripts”For custom request handling, write Rhai scripts and put them in the scripts/ subdirectory of the config directory.
Finding the config directory
Section titled “Finding the config directory”sieve ca path prints the CA file paths, which are in the same directory:
sieve ca path