Class Thrift::MongrelHTTPServer
In: lib/thrift/server/mongrel_http_server.rb
lib/thrift/server/mongrel_http_server.rb
Parent: BaseServer

Methods

new   new   serve   serve  

Classes and Modules

Class Thrift::MongrelHTTPServer::Handler

Public Class methods

[Source]

    # File 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

[Source]

    # File 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

[Source]

    # File lib/thrift/server/mongrel_http_server.rb, line 54
54:     def serve
55:       @server.run.join
56:     end

[Source]

    # File lib/thrift/server/mongrel_http_server.rb, line 54
54:     def serve
55:       @server.run.join
56:     end

[Validate]