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
Not ideal... you have to create a new object for no real reason. And on top of that, you have to supply it with a URL since the emitter ctor will throw without one.
Something better might be...
const{ headers /* other exports such as HTTPEmitter */}=require('cloudevents-sdk/bindings/http');constce=newCloudEvent({type: 'example.event',source: 'https://example.event.source'});constheaders=headers(ce);
The text was updated successfully, but these errors were encountered:
Currently, in order to extract headers from a CloudEvent, you have to first create an HTTPEmitter.
Not ideal... you have to create a new object for no real reason. And on top of that, you have to supply it with a URL since the emitter ctor will throw without one.
Something better might be...
The text was updated successfully, but these errors were encountered: