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

THttpServer Transport

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4
    • Component/s: C++ - Library
    • Labels:
      None
    • Patch Info:
      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.v4.patch
          26 kB
          Roger Meier
        2. THRIFT-247_THttpServer.v3.patch
          26 kB
          Roger Meier
        3. THRIFT-247_THttpServer.v2.patch
          23 kB
          Jérémie BORDIER
        4. THRIFT-247_THttpServer.patch
          23 kB
          Jérémie BORDIER

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: