开发者

Is there a commonly used MIME type for Thrift?

开发者 https://www.devze.com 2023-02-07 07:39 出处:网络
If not, \"application/x-thrift\" could be an option (inspired on http://www.slideshare.net/mokeefe/javaone-2009-ts5276开发者_如何学JAVA-restful-protocol-buffers). Any other suggestions?EDIT: please se

If not, "application/x-thrift" could be an option (inspired on http://www.slideshare.net/mokeefe/javaone-2009-ts5276开发者_如何学JAVA-restful-protocol-buffers). Any other suggestions?


EDIT: please see more up to date response from Jon Parise.

Took me a while to confirm this so I'm ending up answering to my own question. In the Thrift .NET runtime library, class Thrift.Transport.THttpClient I found "request.ContentType = "application/x-thrift";"

So it appears my assumption matches the recommendation.


The official IANA media types for Thrift are:

  • application/vnd.apache.thrift.binary
  • application/vnd.apache.thrift.compact
  • application/vnd.apache.thrift.json
0

精彩评论

暂无评论...
验证码 换一张
取 消