Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
0.9.3
-
None
-
None
-
all
Description
Now that we have registered media types:
- application/vnd.apache.thrift.binary
- application/vnd.apache.thrift.compact
- application/vnd.apache.thrift.json
We should use them exclusively, replacing the old x-thrift. I suggest TProtocol gain a getMediaType() method which returns the correct media type when invoked on a concrete protocol (e.g. TBinaryProtocol.getMediaType() would return "application/vnd.apache.thrift.binary".
HTTP oriented code can then invoke the getMediaType() method of the protocol to discover the correct media type to set in HTTP headers.
Thoughts?
Attachments
Issue Links
- relates to
-
THRIFT-2756 register Media Type @ IANA
- Closed