Skip to main content
Version: 2.2.0-beta

Http

Http sink connector

Description​

Used to launch web hooks using data.

For example, if the data from upstream is [age: 12, name: tyrantlucifer], the body content is the following: {"age": 12, "name": "tyrantlucifer"}

Tips: Http sink only support post json webhook and the data from source will be treated as body content in web hook.

Key features​

Options​

nametyperequireddefault value
urlStringYes-
headersMapNo-
paramsMapNo-
retryintNo-
retry_backoff_multiplier_msintNo100
retry_backoff_max_msintNo10000

url [String]​

http request url

headers [Map]​

http headers

params [Map]​

http params

retry [int]​

The max retry times if request http return to IOException

retry_backoff_multiplier_ms [int]​

The retry-backoff times(millis) multiplier if request http failed

retry_backoff_max_ms [int]​

The maximum retry-backoff times(millis) if request http failed

Example​

simple:

Http {
url = "http://localhost/test/webhook"
headers {
token = "9e32e859ef044462a257e1fc76730066"
}
}