code: def lookup_rest_method(self, orig_request):
      
      method_name, method, params = self.config_manager.lookup_rest_method(
          orig_request.path, orig_request.request_uri, orig_request.http_method)
      orig_request.method_name = method_name
      return method, params
docs: Looks up and returns rest method for the currently-pending request.
  
      Args:
        orig_request: An ApiRequest, the original request from the user.
  
      Returns:
        A tuple of (method descriptor, parameters), or (None, None) if no method
        was found for the current request.