Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3250

Apache Thrift should use registered media types with HTTP

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.9.3
    • None
    • Wish List
    • 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

          Activity

            People

              codesf Randy Abernethy
              codesf Randy Abernethy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: