# File lib/rack/handler.rb, line 25 25: def self.default(options = {}) 26: # Guess. 27: if ENV.include?("PHP_FCGI_CHILDREN") 28: # We already speak FastCGI 29: options.delete :File 30: options.delete :Port 31: 32: Rack::Handler::FastCGI 33: elsif ENV.include?("REQUEST_METHOD") 34: Rack::Handler::CGI 35: else 36: begin 37: Rack::Handler::Mongrel 38: rescue LoadError => e 39: Rack::Handler::WEBrick 40: end 41: end 42: end