Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add Nexus-Operation-Id header #20

Merged

Conversation

Quinn-With-Two-Ns
Copy link
Contributor

Add Nexus-Operation-Id header

see also: nexus-rpc/api#12

* Header for the unique ID returned by the StartOperation response for async operations. Must be
* set on callback headers to support completing operations before the start response is received.
*/
public static final String HEADER_OPERATION_ID = "Nexus-Operation-Id";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public static final String HEADER_OPERATION_ID = "Nexus-Operation-Id";
public static final String OPERATION_ID = "Nexus-Operation-Id";

Figured we don't need to prefix since we didn't for the other two and they are in this class (but can add NEXUS_ if you want, but I don't think it's needed)

Copy link
Contributor Author

@Quinn-With-Two-Ns Quinn-With-Two-Ns Nov 15, 2024

Choose a reason for hiding this comment

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

Removed HEADER_

Copy link

@bergundy bergundy left a comment

Choose a reason for hiding this comment

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

LGTM. No prefix needed, this is perfect.

@Quinn-With-Two-Ns Quinn-With-Two-Ns merged commit 81a782d into nexus-rpc:main Nov 22, 2024
1 check passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants