A Rack interface to a Thrift service.
Thrift currently provides a MongrelHttpServer
. This works the same way
(providing an HTTP interface to a Thrift service) but also provides
a bit better error handling.
Add this line to your application's Gemfile:
gem 'thrift-rack'
And then execute:
$ bundle
Or install it yourself as:
$ gem install thrift-rack
# in a Rack::Builder context
processor = YourThriftService::Processor.new YourThriftHandler.new
run Thrift::Rack::Server.new processor, :path => "/your_service"
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request