Пример #1
0
 def lineReceived(self, line):
     if self.stats:
         self.stats.receivedBytes(len(line) + 2, self.mirror)
     HTTPClientProtocol.lineReceived(self, line)
Пример #2
0
 def rawDataReceived(self, data):
     if self.stats:
         self.stats.receivedBytes(len(data), self.mirror)
     HTTPClientProtocol.rawDataReceived(self, data)
Пример #3
0
 def __init__(self, factory, stats = None, mirror = False):
     HTTPClientProtocol.__init__(self, factory)
     self.stats = stats
     self.mirror = mirror