Skip to content
New issue

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

Document callback headers #4

Merged
merged 1 commit into from
Mar 20, 2024
Merged

Conversation

bergundy
Copy link
Contributor

No description provided.

SPEC.md Outdated
A client may attach arbitrary headers to the request.

Headers that start with the `Nexus-Callback-` prefix are expected to be attached to the callback request when invoked by
the handler. The callback request should strip away the `Nexus-Callback-` prefix. E.g if a Start Operation request

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: This is a must, not a should, right? I think we could say that the handler must strip the prefix before delivering the callback to the client.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thanks!

@bergundy bergundy merged commit a1ef391 into nexus-rpc:main Mar 20, 2024
1 check passed
@bergundy bergundy deleted the callback-headers branch March 20, 2024 00:22
bergundy added a commit to nexus-rpc/sdk-go that referenced this pull request Mar 21, 2024
Exposed callback headers as defined in this recent change to the API:

nexus-rpc/api#4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants