Response Modification
This page is automatically synced from
docs-en/rules/response-modification.md. Language: English | 中文
Response Modification Rules
Section titled “Response Modification Rules”Response modification rules change upstream responses before the client receives them.
example.com resHeaders://X-Proxy=Bifrostexample.com statusCode://503example.com replaceStatus://200example.com resBody://({"ok":true})example.com file://./fixtures/mock.jsonUse statusCode to return a synthetic status without contacting upstream. Use replaceStatus when the upstream request should still be sent but the returned status should be changed. Use file, tpl, or resBody for mock bodies.