writes response
(self, buf)
| 31 | HTTPRequest.__init__(self, cookies=cookies, options=options) |
| 32 | |
| 33 | def write(self, buf): |
| 34 | """ writes response """ |
| 35 | if self.limit and self.rep.tell() > self.limit or self.abort: |
| 36 | rep = self.getResponse() |
| 37 | if self.abort: |
| 38 | raise Abort() |
| 39 | f = open("response.dump", "wb") |
| 40 | f.write(rep) |
| 41 | f.close() |
| 42 | raise Exception("Loaded Url exceeded limit") |
| 43 | |
| 44 | self.rep.write(buf) |
| 45 | |
| 46 | |
| 47 | class FilecryptCc(Crypter): |
no test coverage detected