MCPcopy Index your code
hub / github.com/pyload/pyload / write

Method write

module/network/HTTPRequest.py:297–308  ·  view source on GitHub ↗

writes response

(self, buf)

Source from the content-addressed store, hash-verified

295 return rep
296
297 def write(self, buf):
298 """ writes response """
299 if self.rep.tell() > 1000000 or self.abort:
300 rep = self.getResponse()
301 if self.abort:
302 raise Abort()
303 f = open("response.dump", "wb")
304 f.write(rep)
305 f.close()
306 raise Exception("Loaded Url exceeded limit")
307
308 self.rep.write(buf)
309
310 def writeHeader(self, buf):
311 """ writes header """

Callers 4

_write_funcMethod · 0.45
saveMethod · 0.45
writeBodyMethod · 0.45
_copyChunksMethod · 0.45

Calls 3

getResponseMethod · 0.95
AbortClass · 0.90
closeMethod · 0.45

Tested by

no test coverage detected