# File lib/mongrel/uri_classifier.rb, line 46 def resolve(request_uri) if @root_handler # Optimization for the pathological case of only one handler on "/"; e.g. Rails [Const::SLASH, request_uri, @root_handler] elsif match = @matcher.match(request_uri) uri = match.to_s # A root mounted ("/") handler must resolve such that path info matches the original URI. [uri, (uri == Const::SLASH ? request_uri : match.post_match), @handler_map[uri]] else [nil, nil, nil] end end