| Class | Thrift::MongrelHTTPServer |
| In: |
ruby/lib/thrift/server/mongrel_http_server.rb
|
| Parent: | BaseServer |
# File 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