You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This signature type should support HTTP requests with CloudEvent objects delivered via either structured and binary CloudEvent objects. Usually a CloudEvents SDK can handle transforming the HTTP request to a language-native CloudEvent object.
The CloudEvents specification requires support for both "binary" and "structured" encodings for CloudEvents delivered via HTTP. The Function Framework must support both encodings. A CloudEvents SDK might make this easier, but most SDKs are not complete, so logic may exist within the Framework.
Support signature type
cloudevent
This signature type should support HTTP requests with CloudEvent objects delivered via either structured and binary CloudEvent objects. Usually a CloudEvents SDK can handle transforming the HTTP request to a language-native CloudEvent object.
New signature
cloudevent
in Functions Framework contractThe end-user should see the parameter
cloudevent
, which is a native CloudEvent object using the CloudEvent SDK if possible.Example User Experience (in Node)
Example HTTP requests
The CloudEvents specification requires support for both "binary" and "structured" encodings for CloudEvents delivered via HTTP. The Function Framework must support both encodings. A CloudEvents SDK might make this easier, but most SDKs are not complete, so logic may exist within the Framework.
Examples:
Binary content mode
Structured content mode
A user should be able to access all of the HTTP headers.
A user should be able to access the body of the CloudEvent in the
data
field of an object.The text was updated successfully, but these errors were encountered: