Support for extracting response headers for unary calls
See original GitHub issueIs your feature request related to a problem? Please describe. We have a use-case where we want to simulate a unary call which returns context in its response headers which is required to be passed to subsequent unary calls. Based on our investigation, response Headers are not being captured in GrpcCallAction.ContinuingListener
override def onHeaders(headers: Metadata): Unit = {}
And hence it would not be possible to extract that using this library without a code change.
Describe the solution you’d like A utility method exposed in GrpcCheckSupport which will allow extracting the desired response header
Describe alternatives you’ve considered No known alternatives found.
Additional context NA
Issue Analytics
- State:
- Created a year ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
How to define response headers for unary rpc - Stack Overflow
In Go, I want to set some response headers from inside my rpc handler implementation. Specifically, I want to set some headers related...
Read more >grpc-status is not returned when making unary call #1050
I found that when grpc server throws GrpcStatusException, grpc-web always gets error saying incomplete response if making unary calls.
Read more >Response Header - an overview | ScienceDirect Topics
Most actionable response headers are generated by the Web server itself. These include instructions for the client to cache the content (or not),...
Read more >Chapter 4, gRPC: Under the Hood - O'Reilly
Headers passed in gRPC communication are categorized into two types: call-definition headers and custom metadata. Call-definition headers are predefined headers ...
Read more >Customizing your gateway | gRPC-Gateway - GitHub Pages
You can have Elasticsearch-style ?pretty support in your gateway's endpoints as follows: ... Mapping from HTTP request headers to gRPC client metadata.
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
A new release should be available this weekend.
@phiSgr In that case, I am assuming the library won’t be officially providing support for previous versions atleast for the time being now.