Пример #1
0
 def __init__(self,
              response=None,
              status=200,
              headers=None,
              mimetype=None,
              content_type=None):
     if isinstance(response, Stream):
         response = response.render("html", encoding=None, doctype="html")
     BaseResponse.__init__(self, response, status, headers, mimetype,
                           content_type)
Пример #2
0
 def __init__(
     self, response=None, status=200, headers=None, mimetype=None, content_type=None
 ):
     if isinstance(response, Stream):
         response = response.render("html", encoding=None, doctype="html")
     BaseResponse.__init__(self, response, status, headers, mimetype, content_type)
Пример #3
0
 def __init__(self, response, status, headers):
     BaseResponse.__init__(self, response, status, headers)
     self.body_data = pickle.loads(self.response_body)