Constructor
new HTTPReceiver()
Create an instance of an HTTPReceiver to accept incoming CloudEvents.
- Source:
Methods
accept(headers, body) → {CloudEvent}
Acceptor for an incoming HTTP CloudEvent POST. Can process binary and structured incoming CloudEvents.
Parameters:
Name | Type | Description |
---|---|---|
headers |
Object |
HTTP headers keyed by header name ("Content-Type") |
body |
Object | JSON |
The body of the HTTP request |
- Source: