def _handle_request(self, request):
        response = webob.Response(request=request)
        path = request.path_info
        parsed = self._urlmap(path)
        if parsed:
            path_params, resource = parsed
        else:
            path_params, resource = {}, self.NOT_FOUND_RESOURCE
        instance = resource(request=request, response=response,
            path_params=path_params, application=self)
        response = instance()
        if request.method == 'HEAD':
            response.body = ''
        return response
Finds the resource to which a request maps and then calls it.
dataset/ETHPy150Open pneff/wsgiservice/wsgiservice/application.py/Application._handle_request