parameters: (self, command=None, host=None, full_path=None, is_ssl=None,
                use_query=True)
docstring: Returns true iff the request matches all parameters.
  
      Args:
        command: a string (e.g. 'GET' or 'POST').
        host: a host name (e.g. 'www.google.com').
        full_path: a request path with query string (e.g. '/search?q=dogs')
        is_ssl: whether the request is secure.
        use_query:
          If use_query is True, request matching uses both the hierarchical path
          and query string component.
          If use_query is False, request matching only uses the hierarchical path
  
          e.g. req1 = GET www.test.com/index?aaaa
               req2 = GET www.test.com/index?bbbb
  
          If use_query is True, req1.matches(req2) evaluates to False
          If use_query is False, req1.matches(req2) evaluates to True
  
      Returns:
        True iff the request matches all parameters
docstring_summary: Returns true iff the request matches all parameters.
docstring_tokens: Returns true iff the request matches all parameters .
function: def matches(self, command=None, host=None, full_path=None, is_ssl=None,
                use_query=True):
      """Returns true iff the request matches all parameters.
  
      Args:
        command: a string (e.g. 'GET' or 'POST').
        host: a host name (e.g. 'www.google.com').
        full_path: a request path with query string (e.g. '/search?q=dogs')
        is_ssl: whether the request is secure.
        use_query:
          If use_query is True, request matching uses both the hierarchical path
          and query string component.
          If use_query is False, request matching only uses the hierarchical path
  
          e.g. req1 = GET www.test.com/index?aaaa
               req2 = GET www.test.com/index?bbbb
  
          If use_query is True, req1.matches(req2) evaluates to False
          If use_query is False, req1.matches(req2) evaluates to True
  
      Returns:
        True iff the request matches all parameters
      """
      if command is not None and command != self.command:
        return False
      if is_ssl is not None and is_ssl != self.is_ssl:
        return False
      if host is not None and host != self.host:
        return False
      if full_path is None:
        return True
      if use_query:
        return full_path == self.full_path
      else:
        return self.path == urlparse.urlparse(full_path).path
function_tokens: def matches ( self , command = None , host = None , full_path = None , is_ssl = None , use_query = True ) : if command is not None and command != self . command : return False if is_ssl is not None and is_ssl != self . is_ssl : return False if host is not None and host != self . host : return False if full_path is None : return True if use_query : return full_path == self . full_path else : return self . path == urlparse . urlparse ( full_path ) . path