Skip to content

Body Manipulation

This page is automatically synced from docs-en/rules/body-manipulation.md. Language: English | 中文

Body manipulation rules modify request or response bodies.

example.com reqBody://({"debug":true})
example.com resBody://(mock response)
example.com file://./fixtures/response.json
example.com tpl://./fixtures/template.html

For large, binary, or streaming bodies, prefer file-based mocks or scripts. Keep body rewrites scoped to precise patterns to avoid accidental broad modification.