-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Clarify case for keys in metadata.FromIncomingContext and metadata.FromOutgoingContext #4323
Comments
This is what I see:
There are a few inconsistencies here that would be good to fix:
|
My main concern is, when I get a context from a grpc server and use As
|
Yes, all incoming keys will be lowercase. Per the HTTP/2 spec, https://httpwg.org/specs/rfc7540.html#rfc.section.8.1.2:
|
The documentation does not state, whether the keys in
metadata.FromIncomingContext
andmetadata.FromOutgoingContext
are converted to lowercase (as inmetadata.New
) or not.As far as I can see, the keys are not converted to lowercase.
It would be helpful to have this information in the documentation, as the documentation on
metadata.New
, along with the implementations ofGet
andAppend
can lead to the assumption that the keys are always lowercase.The text was updated successfully, but these errors were encountered: