RigCloudEvents.PlugUtils (Reactive Interaction Gateway v3.0.0-alpha.2) View Source

Common code for dealing with CloudEvents in controllers.

The CloudEvents specification defines how CloudEvents must be accepted depending on the transport; see HTTP Transport Binding for CloudEvents.

We deviate a bit from the spec by interpreting requests as using structured mode if they come with content type application/json and without a ce-specversion header. See RigCloudEvents.PlugUtils.cloudevents_mode/1 for details.

Link to this section Summary

Link to this section Functions

Link to this function

do_handle_cloudevent(conn, handlers, mode)

View Source
Link to this function

handle_cloudevent(conn, handlers \\ [])

View Source