Skip to content

http middleware for converting connect http request to grpc request #787

Answered by timostamm
rauanmayemir asked this question in Q&A
Discussion options

You must be logged in to vote

Hey Rauan, it is correct that it's possible to convert a Connect request to a gRPC request without knowledge of the Protobuf schema - as long as both use the same codec (JSON or Protobuf binary).

This is out of scope for connect-go, but Vanguard supports this translation (and a bit more) and should do what you want - vanguard.Transcoder is a http.Handler. If you have any questions or feature request, it's best to open an issue in the Vanguard repository.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rauanmayemir
Comment options

Answer selected by rauanmayemir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants