Esempio n. 1
0
 def transform_request(self, request_body=None):
     path, params = tools.parse_request(self.path, request_body)
     context = tools.build_context(params, self)
     body, code, headers = web.process(self.command, path, params, context)
     self.generate_response(body, code, headers)
Esempio n. 2
0
 def transform_request(self, request_body=None):
     path, params = tools.parse_request(self.path, request_body)
     context = tools.build_context(params, self.app, self)
     body, code, headers = FuqitHandler.app.process(self.command, path, params, context)
     self.generate_response(body, code, headers)