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)
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)
def __init__(self, response, status, headers): BaseResponse.__init__(self, response, status, headers) self.body_data = pickle.loads(self.response_body)