开发者

Is there a commonly used MIME type for Thrift?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜