Skip to main content

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

    string


    Response body that replaces the complete upstream response body.

  • before_body

    string


    Content prepended once to the upstream response body.

  • after_body

    string


    Content appended after the final upstream response-body chunk.

  • headers

    object

    valid value:

    at least one response header with a nonempty name and a string or number value

    Response headers added or replaced by the plugin.