echo

echo #

Description #

The echo filter is used to output specified characters in the returned result. It is often used for debugging.

Function Demonstration #

Configuration Example #

A simple example is as follows:

flow:
  - name: hello_world
    filter:
      - echo:
          message: "hello infini\n"

The echo filter allows you to set the number of times that same characters can be output repeatedly. See the following example.

...
   - echo:
       message: "hello gateway\n"
       repeat: 3
...

Parameter Description #

NameTypeDescription
messagestringCharacters to be output,default .
messages[]stringCharacters list to be output
statusintHTTP Status,default 200
repeatintNumber of repetition times
continueboolWhether to continue further filters,default true
responseboolWhether to output to HTTP response,default true
stdoutboolWhether the terminal also outputs the characters. The default value is false.
loggingboolWhether to output as logging,default false
logging_levelstringThe logging level for output logs,default info
Edit Edit this page