:return: text
(self)
| 396 | return body |
| 397 | |
| 398 | def text(self): |
| 399 | ''' |
| 400 | |
| 401 | :return: text |
| 402 | ''' |
| 403 | body = self.content() |
| 404 | |
| 405 | try: |
| 406 | text = body.decode(self.charset, 'ignore') |
| 407 | except: |
| 408 | text = str(body) |
| 409 | self.log["response"] += '\r\n' + text[:4096] |
| 410 | return text |
| 411 | |
| 412 | def _cookie_update(self, old, new): |
| 413 | ''' |