Parent

Methods

Thrift::MongrelHTTPServer

Public Class Methods

new(processor, opts={}) click to toggle source
# File lib/thrift/server/mongrel_http_server.rb, line 45
def initialize(processor, opts={})
  port = opts[:port] || 80
  ip = opts[:ip] || "0.0.0.0"
  path = opts[:path] || ""
  protocol_factory = opts[:protocol_factory] || BinaryProtocolFactory.new
  @server = Mongrel::HttpServer.new ip, port
  @server.register "/#{path}", Handler.new(processor, protocol_factory)
end

Public Instance Methods

serve() click to toggle source
# File lib/thrift/server/mongrel_http_server.rb, line 54
def serve
  @server.run.join
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.