Skip to content

lib: make HTTPEmitter headers method a property of the class - #186

Merged
lance merged 1 commit into
cloudevents:masterfrom
lance:178-extract-headers
May 24, 2020
Merged

lance merged 1 commit into
cloudevents:masterfrom
lance:178-extract-headers

Conversation

@lance

@lance lance commented May 22, 2020

Copy link
Copy Markdown
Member

Now, instead of requiring an instance of HTTPEmitter to retrieve the headers
for an event, you can get them this way:

const headers = HTTPEmitter.headers(myCloudEvent);

Fixes: #178

Signed-off-by: Lance Ball <lball@redhat.com>
@lance
lance requested review from a team, danbev, grant and helio-frota and removed request for a team May 22, 2020 18:29
@lance lance self-assigned this May 22, 2020
@lance lance added the type/enhancement New feature or request label May 22, 2020
@lance
lance merged commit f50e80f into cloudevents:master May 24, 2020
@lance
lance deleted the 178-extract-headers branch May 24, 2020 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide a better way to extract headers from a CloudEvent

2 participants