Skip to content

HTTP Message Binding v0.2.0

The HTTP message binding v0.2.0 is used to define the schema for the headers of an HTTP message.

Message Properties

PropertyTypeRequiredDescription
bindingVersionstringNoBinding version (defaults to 0.2.0).
headersSchema ObjectNoA schema object defining the HTTP headers.

Example

This describes the message for a webhook, specifying that the Content-Type header is required.

yaml
messages:
  userSignupEvent:
    bindings:
      http:
        bindingVersion: '0.2.0'
        headers:
          type: object
          required:
            - 'Content-Type'
          properties:
            Content-Type:
              type: string
              enum: ['application/json']

Changelog

Version 0.2.0

  • This version only includes the headers property. The statusCode property was added in v0.3.0.