Skip to content

HTTP

Configuration

The HTTP trigger is configurable using the http type and the following arguments:

ArgumentDescriptionDefault valueOptional
urlHTTP server URLNo
methodHTTP method to useGETNo
headersHeaders to include in the requestYes
bodyHTTP request bodyYes

Headers

The headers field specifies the headers to include in the HTTP request, which must be specified as key-value pairs within a YAML map.

Example:

headers:
    key1: "value1"
    key2: "value2"

Body

The body field specifies the HTTP request body, which can be specified as a string.

Example:

body: '{"key": "value"}'