Use lower case header keys in in-body trailers as mandated by gRPC-Web spec.
See original GitHub issueI found some concerns when I have tested a gRPC Web server related to trailers.
here are the response trailers.
Content-Type: application/grpc+proto
Grpc-Status: 0
- Why aren’t trailer names using lower-case? The gRPC Web spec says, “use lower-case header/trailer names”.
- Why is
Grpc-Status
at the end? In order to the ABNF of gRPC response,Status
must be next toLength-Prefixed-Message
.
ref. https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-WEB.md https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (3 by maintainers)
Top Results From Across the Web
connect
Metadata written by handlers may be sent as HTTP headers, HTTP trailers, or a block of in-body metadata, depending on the protocol in...
Read more >Why does gRPC insist on trailers?
It's okay to expose trailer headers sans semantics in the API and ... Why is it wrong to say its better to use...
Read more >HTTP/2 Header Casing - Yaakov's Blog
Recently a colleague at work asked why they were getting lowercase header names from their local development web server.
Read more >GRPC Core: gRPC Web
gRPC-Web provides a JS client library that supports the same API as ... use lower-case header/trailer names; use EOF (end of body) to...
Read more >Linknovate | Experts for mongoose pt
Name Score News
Amazon 48.2 2
Paramount Pictures 48.2 2
James Williams 48.2 2
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m my testing of 0.6.4 in https://github.com/johanbrandhorst/grpc-web-compatibility-test this is now working as expected 🎉. Huge thanks to @ktr0731 for getting the ball rolling on this!
@ktr0731 I’ve created a repo that should help test this behaviour: https://github.com/johanbrandhorst/grpc-web-compatibility-test. If you’re interested in testing this more, maybe you could contribute to the repo?