Lines Matching refs:request

500     request = None  variable in RequestHandler
506 def __init__(self, request=None, response=None): argument
528 self.initialize(request, response)
530 def initialize(self, request, response): argument
539 self.request = request
550 request = self.request
551 method_name = request.route.handler_method
553 method_name = _normalize_handler_method(request.method)
565 args, kwargs = request.route_args, request.route_kwargs
607 body=body, request=self.request,
625 return self.app.router.build(self.request, _name, args, kwargs)
770 def match(self, request): argument
782 def build(self, request, args, kwargs): argument
845 def match(self, request): argument
850 match = self.regex.match(urllib.unquote(request.path))
968 def match(self, request): argument
977 match = self.regex.match(urllib.unquote(request.path))
978 if not match or self.schemes and request.scheme not in self.schemes:
981 if self.methods and request.method not in self.methods:
989 def build(self, request, args, kwargs): argument
1000 netloc = netloc or request.host
1001 scheme = scheme or request.scheme
1059 def __call__(self, request, response): argument
1061 args, kwargs = request.route_args, request.route_kwargs
1065 return self.handler(request, *args, **kwargs)
1075 def __call__(self, request, response): argument
1077 handler.initialize(request, response)
1078 method_name = _normalize_handler_method(request.method)
1084 args, kwargs = request.route_args, request.route_kwargs
1091 handler.handle_exception(e, request.app.debug)
1100 def __call__(self, request, response): argument
1101 handler = self.handler(request, response)
1188 def default_matcher(self, request): argument
1205 match = route.match(request)
1216 def default_builder(self, request, name, args, kwargs): argument
1249 return route.build(request, args, kwargs)
1251 def default_dispatcher(self, request, response): argument
1265 route, args, kwargs = rv = self.match(request)
1266 request.route, request.route_args, request.route_kwargs = rv
1278 return route.handler_adapter(request, response)
1408 request = self.app.request_class(self.environ)
1411 request.app = self.app
1412 request.response = response
1414 self.app.set_globals(app=self.app, request=request)
1415 return request, response
1459 request = None variable in WSGIApplication
1481 def set_globals(self, app=None, request=None): argument
1500 _local.request = request
1503 WSGIApplication.request = request
1511 WSGIApplication.request = None
1524 with self.request_context_class(self, environ) as (request, response):
1526 if request.method not in self.allowed_methods:
1530 rv = self.router.dispatch(request, response)
1536 rv = self.handle_exception(request, response, e)
1561 def handle_exception(self, request, response, e): argument
1596 return handler(request, response, e)
1722 assert WSGIApplication.request is not None, _get_request_error
1724 return WSGIApplication.request
1732 request = _request or get_request()
1733 return request.app.router.build(request, _name, args, kwargs)
1737 request=None, response=None): argument
1766 request = request or get_request()
1767 uri = str(urlparse.urljoin(request.url, uri))
1782 request = request or get_request()
1783 response = request.app.response_class()
1814 body=_body, request=_request, response=_response)
1971 WSGIApplication.request = _local('request')