http

http #

CategoryScope
Generalpipeline

Configuration #

FieldTypeDefaultDescription
message_fieldparam.ParaKey“messages”Context key holding the message batch.
schemastringsupport variable
hostsliststringsupport variable
methodstringsupport variable
pathstringsupport variable
headersmap (string to string)support variable
basic_auth*model.BasicAuthsupport variable
tls*config.TLSConfigclient tls config
compressboolfalsecompress request body, default false
compression_thresholdintdefault 1024 bytes
valid_status_codelistintvalidated status code, default 200
max_sending_qpsintRate limit for outgoing requests.
max_connection_per_nodeintConnection pool size per host.
max_response_sizeintMaximum accepted response body size.
max_retry_timesintMaximum number of retries.
retry_delay_in_msintDelay between retries, in milliseconds.
max_conn_wait_timeoutdurationHow long a request waits for a free connection.
max_idle_conn_durationdurationMaximum idle time of a pooled connection.
max_conn_durationdurationMaximum lifetime of a pooled connection.
timeoutdurationOverall request timeout.
read_timeoutdurationTimeout for reading the response body.
write_timeoutdurationTimeout for writing the request body.
read_buffer_sizeintRead buffer size of the connection.
write_buffer_sizeintWrite buffer size of the connection.

Example #

processor:
  - http:
      request:
        method: POST
        url: "https://example.com/api/report"
        body: '{"ok":true}'
Edit Edit this page