Set Headers

You can set custom headers inside of request.

request:
  headers:
    key: value

You can set multiple headers, all of these will be sent in request.

request:
  headers:
    accept: application/json
    x-auth-token: 123adsf
    content-type: text/xml; charset=utf-8

Example

name: Set Headers
stages:
  - name: request with custom headers
    request:
      url: "https://httpbin.org/post"
      method: POST
      headers:
        accept: application/json
        x-auth-token: custom-token
        content-type: text/xml; charset=utf-8