Skip to content

Commit

Permalink
Use K-Eventing-Http-Attr instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Lin committed Jan 12, 2021
1 parent 8981340 commit 3039f75
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/spec/data-plane.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,25 @@ delivered.
CloudEvents received by Sink MAY have
[Distributed Tracing Extension Attribute](https://github.com/cloudevents/spec/blob/v1.0/extensions/distributed-tracing.md).

### HTTP Attributes

An event sender, including Source and Broker and Channel, MUST include
all the non-default HTTP attributes with header key `K-Eventing-Http-Attr` in
every event delivery to specify
what HTTP features it can support. Without a certain attribute, the receiver
MUST assume the corresponding HTTP feature is not supported. A list of HTTP
attributes can be found below:

| Attributes | HTTP Feature Description |
| ------------------ | ------------------------------------------------------------------------- |
| `callable` | If the event sender supports event reply in HTTP repsonse. |

An example is that a broker supporting event reply MUST send events with
an additional header `K-Eventing-Http-Attr: ["callable"]` so that the sink connected
to the broker knows event reply will be accepted. While a source
may send events without the header, in which case the sink connected directly
to the source will know that any event reply will be dropped.

### Event reply header

An event sender, including Source and Broker and Channel, SHOULD include
Expand Down

0 comments on commit 3039f75

Please sign in to comment.