Are there any plans to support application/x-protobuf content type? #1405
-
I am hoping to move over to protobuf-es and connect-es. However all of my servers only support application/x-protobuf content type. I see after version 1.3 connect-es now has response content-type validation which does not include application/x-protobuf nor do the docs say its supported. Any insight there? Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Connect-ES supports the content-types defined by the Connect, gRPC, and gRPC-Web protocols. I assume your servers use a different or home-grown protocol? If you're using transports from |
Beta Was this translation helpful? Give feedback.
-
Hello thank you for the speedy response! I understand that I can supply a fetch callback to connect-web and capture the response to then just override the content type application/x-protobuf to something else. The thing I am trying to figure out is what would that something else be that is the correct mapping. Would it map to I see that Connect protocol uses the application/proto and application/json Content-Types for unary RPCs. For streaming, it uses application/connect+proto and application/connect+json. My real question was are you planning to support Sorry I am new to this area so just trying to understand the expectations of this library with what I am working with. I see for example cloudflare supports |
Beta Was this translation helpful? Give feedback.
We are not planning to support other content-types as aliases for the existing content-types. Doing so would be a breaking change to all implementations, and it would make it more complicated to implement the protocol, while not adding any new capabilities to the protocol.
Cloudflare may have specific behavior tied to the
application/x-protobuf
content-type, but I'm quite sure this is unrelated to the Connect protocol.