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

Add a Get/Post Http Server to Node along with examples

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.2
    • Fix Version/s: 0.9.2
    • Component/s: Node.js - Library
    • Labels:
    • Environment:

      Tested on Windows 7 and Ubuntu 12

    • Patch Info:
      Patch Available

      Description

      This patch adds a createHttpGetPostServer() function to the Node.js library allowing a server to be created which will serve pages as well as handle Thrift RPC. This is convenient in avoiding cross domain browser issues for testing among other things. In particular, Browser based html/JavaScript can be loaded from the node server and Thrift RPC calls can be made subsequently to the same server. The patch includes a demo with a hello.html (the browser client), hello.js (the node server) and hello.thrift (the service definition).

        Attachments

          Activity

            People

            • Assignee:
              codesf Randy Abernethy
              Reporter:
              codesf Randy Abernethy
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: