Echo Configuration
The echo plugin replaces or wraps upstream response bodies and adds response headers for testing and controlled gateway responses. Configuration covers plugin parameters.
Parameters
See plugin common configurations for configuration options available to all plugins.
Configure at least one of the following response-body parameters: body, before_body, or after_body.
body
Response body that replaces the complete upstream response body.
before_body
Content prepended once to the upstream response body.
after_body
Content appended after the final upstream response-body chunk.
headers
valid value:
at least one response header with a nonempty name and a string or number valueResponse headers added or replaced by the plugin.