question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use lower case header keys in in-body trailers as mandated by gRPC-Web spec.

See original GitHub issue

I 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
  1. Why aren’t trailer names using lower-case? The gRPC Web spec says, “use lower-case header/trailer names”.
  2. Why is Grpc-Status at the end? In order to the ABNF of gRPC response, Status must be next to Length-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:closed
  • Created 5 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
johanbrandhorstcommented, Nov 3, 2018

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!

1reaction
johanbrandhorstcommented, Oct 25, 2018

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found