writes response
(self, buf)
| 20 | HTTPRequest.__init__(self, cookies=cookies, options=options) |
| 21 | |
| 22 | def write(self, buf): |
| 23 | """ writes response """ |
| 24 | if self.limit and self.rep.tell() > self.limit or self.abort: |
| 25 | rep = self.getResponse() |
| 26 | if self.abort: |
| 27 | raise Abort() |
| 28 | f = open("response.dump", "wb") |
| 29 | f.write(rep) |
| 30 | f.close() |
| 31 | raise Exception("Loaded Url exceeded limit") |
| 32 | |
| 33 | self.rep.write(buf) |
| 34 | |
| 35 | |
| 36 | class UserscloudCom(SimpleHoster): |
nothing calls this directly
no test coverage detected