DeterministicESPAsyncWebServer v6.28.0
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
cloudevents.h File Reference

CloudEvents v1.0 (CNCF) event envelope - structured JSON build + binary (ce-* header) read. Zero-heap; builds on the JSON writer. More...

#include "ServerConfig.h"

Go to the source code of this file.

Detailed Description

CloudEvents v1.0 (CNCF) event envelope - structured JSON build + binary (ce-* header) read. Zero-heap; builds on the JSON writer.

CloudEvents is the application-layer metadata envelope that makes a device's events interoperable with serverless / event-mesh consumers. Two content modes:

  • structured - the whole event is one application/cloudevents+json body; build it with cloudevents_build_json() into a caller buffer.
  • binary - the event attributes ride as ce-* HTTP headers and the payload is the body; read an inbound binary event with cloudevents_from_headers().

Emit a binary event from a handler by adding the ce-id / ce-source / ce-type / ce-specversion response headers yourself (and the data as the body)

  • no special API needed.
Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file cloudevents.h.