Module Rack::Handler
In: lib/rack/handler.rb
lib/rack/handler/cgi.rb
lib/rack/handler/evented_mongrel.rb
lib/rack/handler/fastcgi.rb
lib/rack/handler/lsws.rb
lib/rack/handler/mongrel.rb
lib/rack/handler/scgi.rb
lib/rack/handler/swiftiplied_mongrel.rb
lib/rack/handler/thin.rb
lib/rack/handler/webrick.rb

Handlers connect web servers with Rack.

Rack includes Handlers for Mongrel, WEBrick, FastCGI, CGI, SCGI and LiteSpeed.

Handlers usually are activated by calling MyHandler.run(myapp). A second optional hash can be passed to include server-specific configuration.

Methods

get   register  

Classes and Modules

Class Rack::Handler::CGI
Class Rack::Handler::EventedMongrel
Class Rack::Handler::FastCGI
Class Rack::Handler::LSWS
Class Rack::Handler::Mongrel
Class Rack::Handler::SCGI
Class Rack::Handler::SwiftipliedMongrel
Class Rack::Handler::Thin
Class Rack::Handler::WEBrick

Public Class methods

[Source]

    # File lib/rack/handler.rb, line 11
11:     def self.get(server)
12:       return unless server
13: 
14:       if klass = @handlers[server]
15:         obj = Object
16:         klass.split("::").each { |x| obj = obj.const_get(x) }
17:         obj
18:       else
19:         Rack::Handler.const_get(server.capitalize)
20:       end
21:     end

[Source]

    # File lib/rack/handler.rb, line 23
23:     def self.register(server, klass)
24:       @handlers ||= {}
25:       @handlers[server] = klass
26:     end

[Validate]