-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Add a newAttachHeadersServerInterceptor() util #11458
Conversation
// It isn't too late to call sendHeaders(): !headersSent implies that it hasn't been | ||
// called yet (obviously). But it also implies that no messages have been sent, because | ||
// sendMessage() *requires* a preceding call to sendHeaders(). | ||
sendHeaders(new Metadata()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, you're forcing headers. I don't think we want to do that generally. Maybe that is what you need, but I think it then stops being a general util.
Trailers-only is important to retries, as it delivers the status code without committing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't know that - fixed and thanks!
No description provided.