def get_request(self): return Request(self.request.method.upper(), self.request.protocol, self.request.host, self.request.path, self.path_kwargs, self.request.uri, self.request.query_arguments, self.request_headers(), self.request.body, self.request.body_arguments, self.request_files(), self.request, self)
def prepare(self): self.view.request = Request(self.request.method.upper(), self.request.protocol, self.request.host, self.request.path, self.path_kwargs, self.request.uri, self.request.query_arguments, self.request_headers(), self.request.body, self.request.body_arguments, self.request_files()) self.view.prepare()
def before_dispatch(self): self.view = self.view_cls() self.view.request = Request(self.request.method.upper(), self.request.scheme, self.request.get_host(), self.request.path, self.kwargs, self.request.get_full_path(), dict(self.request.GET.lists()), self.request_headers(), self.request.body, dict(self.request.POST.lists()), self.request_files()) self.view.before_dispatch()
def prepare(self): self.view = self.view_cls() self.view.request = Request(self.request.method.upper(), self.request.scheme, self.request._get_raw_host(), self.request.path, self.kwargs, self.request.get_full_path(), dict(self.request.GET.lists()), self.request_headers(), self.request.body, dict(self.request.POST.lists()), self.request_files()) self.view.prepare()
def get_request(self): return Request( self.request.method.upper(), self.request.scheme, self.request.get_host(), self.request.path, self.kwargs, self.request.get_full_path(), dict(self.request.GET.lists()), self.request_headers(), self.request.body, dict(self.request.POST.lists()), self.request_files(), self )
def before_dispatch(self): self.view.request = Request( self.request.method.upper(), self.request.protocol, self.request.host, self.request.path, self.path_kwargs, self.request.uri, self.request.query_arguments, self.request_headers(), self.request.body, self.request.body_arguments, self.request_files(), self.request, self ) self.view.before_dispatch()