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

Add streaming header information to protobuf #1264

Merged
merged 1 commit into from
Mar 13, 2025
Merged

Conversation

wbrowne
Copy link
Member

@wbrowne wbrowne commented Mar 12, 2025

What this PR does / why we need it:
To support reading forwarded HTTP header information during stream requests

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@wbrowne wbrowne self-assigned this Mar 12, 2025
@wbrowne wbrowne requested a review from a team as a code owner March 12, 2025 18:08
@wbrowne wbrowne requested review from andresmgot, oshirohugo and xnyo and removed request for a team March 12, 2025 18:08
Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +251 to +253
if protoReq.Headers == nil {
protoReq.Headers = map[string]string{}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

curious, can't protoReq.Headers be nil?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's just the same convention we have to always set to empty map for the other pre-existing header maps 🤷

@wbrowne wbrowne merged commit 3795667 into main Mar 13, 2025
4 checks passed
@wbrowne wbrowne deleted the streaming-headers branch March 13, 2025 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🚀 Shipped
Development

Successfully merging this pull request may close these issues.

None yet

2 participants