http

http #

Description #

The http filter is used to forward requests to a specified HTTP server as a proxy.

Configuration Example #

A simple example is as follows:

flow:
  - name: default_flow
    filter:
      - basic_auth:
          valid_users:
            medcl: passwd
      - http:
          schema: "http" #https or http
          #host: "192.168.3.98:5601"
          hosts: 
           - "192.168.3.98:5601"
           - "192.168.3.98:5602"

Parameter Description #

NameTypeDescription
timeout_in_secondintRequest timeout duration, in seconds. The default value is 10.
schemastringhttp or https
hoststringTarget host address containing the port ID, for example, localhost:9200
hostsarrayHost address list. The addresses are tried in sequence after a fault occurs.