Proxyman icon indicating copy to clipboard operation
Proxyman copied to clipboard

Alternative messageType header

Open q42jaap opened this issue 8 months ago • 2 comments

Description

Hi, from my investigations, it seems that it's difficult to set ; messageType=mypackage.MyMessageType in connect-go: https://github.com/connectrpc/connect-go/issues/847

If messageType would be an alternative header, this would be much easier to do.

Also, application/grpc is the Content-Type used by connect-go

Why this feature/change is important?

Help mobile devs understand the rpc calls quickly, without configuring each different rpc.

q42jaap avatar May 16 '25 13:05 q42jaap

Reading further, there has been some debate about which Content-Type header is right for grpc: https://github.com/grpc/grpc/issues/36765 This is concerning the +xyz extension to application/grpc. An alternative header, like Proxyman-Protobuf-Message-Type or something would make sense to me.

q42jaap avatar May 16 '25 14:05 q42jaap

You can define your own Message Type for each URL. Here is the doc: https://docs.proxyman.com/advanced-features/protobuf

THe MessageType header is just an automatic way. You can manually create it.

NghiaTranUIT avatar May 16 '25 15:05 NghiaTranUIT