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.

Support for `response_body` option of gRPC-JSON transcoding

See original GitHub issue

A JSON body of a gRPC response should be extracted if response_body option is specified. https://github.com/googleapis/googleapis/blob/master/google/api/http.proto#L354-L360 We can extract the content of the field specified in response_body before sending a response. https://github.com/line/armeria/blob/daae15d426ffb2581fdff9f10f16ec69f90b7a36/grpc/src/main/java/com/linecorp/armeria/server/grpc/AbstractUnframedGrpcService.java#L200-L202

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
ikhooncommented, Mar 16, 2022

We can remove the content-length header from response headers but it does not look good. How about passing a Function<HttpData, HttpData> responseBodyConverter to frameAndServe and using it in singleSubscriber?

2reactions
natsumehucommented, Mar 4, 2022

@ikhoon You can assign this to me

Read more comments on GitHub >

github_iconTop Results From Across the Web

gRPC-JSON transcoder - Envoy Proxy
This is a filter which allows a RESTful JSON API client to send requests to Envoy over HTTP and get proxied to a...
Read more >
convert grpc-message to body in response · Issue #3383 ...
I've a REST client and a gRPC server and I'm using Envoy's grpc-json transcoder. When an exception is thrown by gRPC server with...
Read more >
Configure HTTP and JSON for gRPC JSON transcoding
Transcoding deserializes the request body JSON to the request message. The body field specifies how the HTTP request body maps to the request ......
Read more >
Transcoding gRPC to HTTP/JSON using Envoy - JDriven Blog
Annotating the service with HTTP options for transcoding ... The HTTP response body will be the JSON representation of all non-empty fields ...
Read more >
Transcoding HTTP/JSON to gRPC - Cloud Endpoints
Cloud Endpoints supports protocol transcoding so that clients can access your gRPC API by using HTTP/JSON. The Extensible Service Proxy (ESP) transcodes ......
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