We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subscriptions are set up on a path, so events may need to be emitted on a path.
Further, a user may want to include additional headers with the emit() request, such as an Authorization header used for Auth.
emit()
Authorization
A proposed update to the emit() signature could be:
eventGateway.emit(<CloudEvents object>, <Options>)
The usage would look like:
eventGateway.emit({ eventID: '1', eventType: 'user.created', cloudEventsVersion: '0.1', source: '/services/users', contentType: 'application/json', data: { userID: 'foo' }}, { path: /users, headers: { "Authorization": "Bearer 1234" } })
The text was updated successfully, but these errors were encountered:
Yeah, makes sense.
Sorry, something went wrong.
No branches or pull requests
Subscriptions are set up on a path, so events may need to be emitted on a path.
Further, a user may want to include additional headers with the
emit()
request, such as anAuthorization
header used for Auth.A proposed update to the
emit()
signature could be:The usage would look like:
The text was updated successfully, but these errors were encountered: