Your client will look something like this:
from thrift.transport import THttpClient from thrift.transport import TTransport from thrift.protocol import TBinaryProtocol from tutorial import Calculator transport = THttpClient.THttpClient('https://your-service.com') transport = TTransport.TBufferedTransport(transport) protocol = TBinaryProtocol.TBinaryProtocol(transport) client = Calculator.Client(protocol)
You can use a proxy in front of your service to terminate the SSL connection, and then send an HTTP request to your server, which looks something like this:
from thrift.protocol import TBinaryProtocol from thrift.server import THttpServer from tutorial import CalculatorHandler
source share