def wsgi_app(self, environ, start_response): try: request = handlers.Request(environ) response = self.dispatch_request(request) return response(environ, start_response) except Exception as e: request = handlers.Request(environ) response = handlers.serve_exception(self.pod, request, e) return response(environ, start_response)
def __call__(self, environ, start_response): try: return self.wsgi_app(environ, start_response) except Exception as e: request = handlers.Request(environ) response = handlers.serve_exception(self.pod, request, e) return response(environ, start_response)
def wsgi_app(self, environ, start_response): request = handlers.Request(environ) response = self.dispatch_request(request) return response(environ, start_response)