def __call__(self, environ, start_response):
self.start_response = start_response<EOL>path = environ['<STR_LIT>']<EOL>method = environ['<STR_LIT>']<EOL>func, methods, func_kwargs = self.url_resolve(path)<EOL>try:<EOL><INDENT>if func is None:<EOL><INDENT>self.notfound()<EOL><DEDENT>if method not in methods:<EOL><INDENT>self.abort(<NUM_LIT>)<EOL><DEDENT>request = Request(environ)<EOL>result = self.handle_before_request_hooks(request, view_func=func)<EOL>if isinstance(result, Response):<EOL><INDENT>response = result<EOL><DEDENT>else:<EOL><INDENT>response = self.handle_view(request, func, func_kwargs)<EOL><DEDENT>self.handle_after_request_hooks(request, response, view_func=func)<EOL><DEDENT>except HTTPException as ex:<EOL><INDENT>response = ex.response<EOL><DEDENT>return self._start_response(response)<EOL>
for wsgi server