Options
All
  • Public
  • Public/Protected
  • All
Menu

cloudevents-sdk

Index

Variables

Const headerMap

headerMap: Map<any, any> = new Map()

A utility Map used to retrieve the header names for a CloudEvent using the CloudEvent getter function. A utility Map used to retrieve the header names for a CloudEvent using the CloudEvent getter function.

Functions

headers

  • headers(event: CloudEvent, version?: string): {}
  • Returns the HTTP headers that will be sent for this event when the HTTP transmission mode is "binary". Events sent over HTTP in structured mode only have a single CE header and that is "ce-id", corresponding to the event ID.

    Parameters

    • event: CloudEvent

      a CloudEvent

    • Default value version: string = SPEC_V1

    Returns {}

    the headers that will be sent for the event

Generated using TypeDoc