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

Apache Thrift should use registered media types with HTTP

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.9.3
    • Fix Version/s: None
    • Component/s: Wish List
    • Labels:
      None
    • Environment:

      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

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

                Dates

                • Created:
                  Updated: