ruby-win32/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/uri_classifier.rb
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
# Resolve a request URI by finding the best partial match in the registered 
# handler URIs.
Resolve a request URI by finding the best partial match in the registered
handler URIs.
Resolve a request URI by finding the best partial match in the registered handler URIs .
def resolve(request_uri)
      if @root_handler
        [Const::SLASH, request_uri, @root_handler]
      elsif match = @matcher.match(request_uri)
        uri = match.to_s
        [uri, (uri == Const::SLASH ? request_uri : match.post_match), @handler_map[uri]]
      else
        [nil, nil, nil]
      end
    end
def resolve ( request_uri ) if @root_handler [ Const :: SLASH , request_uri , @root_handler ] elsif match = @matcher . match ( request_uri ) uri = match . to_s [ uri , ( uri == Const :: SLASH ? request_uri : match . post_match ) , @handler_map [ uri ] ] else [ nil , nil , nil ] end end
Resolve a request URI by finding the best partial match in the registered
handler URIs.
Resolve a request URI by finding the best partial match in the registered handler URIs .
# Optimization for the pathological case of only one handler on "/"; e.g. Rails # A root mounted ("/") handler must resolve such that path info matches the original URI.
request_uri