Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HTTP Body

In order to set the body for an HTTP request, you can use the body parameter:

Code Block
languageyaml
pipeline:
  - http.post:
      url: http://hostname/path
      body: "This is the HTTP body of the POST request"

You can also “link” to the body of the pipeline and use this for the POST body:

Code Block
languageyaml
pipeline:
  - http.post:
      url: http://hostname/path
      body: ${body}

If no body parameter is set. Then the value from the input parameter will be used as body. If this is also null, not body will be set at all.

HTTP Headers

You can set HTTP headers using the headers parameter. It expects the headers as name-value pairs.

Example:

Code Block
languageyaml
pipeline:
  - http.post:
      url: http://hostname/path
      headers:
        Content-Type: application/json