Using Python Tornado to serve Thrift HTTP requests.
Project layout:
- server.py - regular Thrift HTTP server
- server_tornado.py - Tornado powered Thrift HTTP server - accepts both POST and web socket transport protocols
- client_post.py - regular Thrift client that uses POST (will work with both servers)
- client_websocket.py - Thrift client that uses web sockets for transport
- static/index.html - HTML client with Java script Thrift library - accessible through http://localhost:8888/static/index.html when running server_tornado.py