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

THttpServer Transport

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.4
    • C++ - Library
    • None
    • Patch Available

    Description

      Here is a first working version of the THttpServer transport for the C++ library.
      It was inspired by Mark Slee's THttpClient which i splitted into an interface, THttpTransport and two transport implementations, THttpClient and THttpServer. Tested with TJsonProtocol (the fixed revision available in THRIFT-244) and TBinaryProtocol in the tutorial example, works like a charm.

      The code is available in the attached patch, and in the gitweb tree in refs/pri/jbordier/cleaning_protocols, or also in github: http://github.com/ahfeel/thrift/tree/master

      It only supports POST requests yet, and i'm working in adding a ?callback=some_js_callback support to the URI to have JsonP protocol support.

      Attachments

        1. THRIFT-247_THttpServer.patch
          23 kB
          Jérémie BORDIER
        2. THRIFT-247_THttpServer.v2.patch
          23 kB
          Jérémie BORDIER
        3. THRIFT-247_THttpServer.v3.patch
          26 kB
          Roger Meier
        4. THRIFT-247_THttpServer.v4.patch
          26 kB
          Roger Meier

        Activity

          People

            Unassigned Unassigned
            ahfeel Jérémie BORDIER
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: