Methods

Files

Class Index [+]

Quicksearch

Thrift::MongrelHTTPServer

Public Class Methods

new(processor, opts={}) click to toggle source
    # File /tmp/buildd/evernote-mode-0.10/ruby/lib/thrift/server/mongrel_http_server.rb, line 45
45:     def initialize(processor, opts={})
46:       port = opts[:port] || 80
47:       ip = opts[:ip] || "0.0.0.0"
48:       path = opts[:path] || ""
49:       protocol_factory = opts[:protocol_factory] || BinaryProtocolFactory.new
50:       @server = Mongrel::HttpServer.new ip, port
51:       @server.register "/#{path}", Handler.new(processor, protocol_factory)
52:     end

Public Instance Methods

serve() click to toggle source
    # File /tmp/buildd/evernote-mode-0.10/ruby/lib/thrift/server/mongrel_http_server.rb, line 54
54:     def serve
55:       @server.run.join
56:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.