|
@@ -45,8 +45,6 @@ class ResponseHandler(aiohttp.client_proto.ResponseHandler): |
|
|
self.rawData.responseData.write(data) |
|
|
self.rawData.responseData.write(data) |
|
|
|
|
|
|
|
|
def reset_raw_data(self): |
|
|
def reset_raw_data(self): |
|
|
if self.rawData: |
|
|
|
|
|
self.rawData.close() |
|
|
|
|
|
self.rawData = RawData() |
|
|
self.rawData = RawData() |
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -170,6 +168,11 @@ class ClientResponse(aiohttp.client_reqrep.ClientResponse): |
|
|
self.connection.reset_raw_data() |
|
|
self.connection.reset_raw_data() |
|
|
await super().release() |
|
|
await super().release() |
|
|
|
|
|
|
|
|
|
|
|
def __del__(self): |
|
|
|
|
|
if self._rawData: |
|
|
|
|
|
self._rawData.close() |
|
|
|
|
|
super().__del__() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Payload: |
|
|
class Payload: |
|
|
# A class implementing the minimal subset used by the HttpPayloadParser to retrieve the data |
|
|
# A class implementing the minimal subset used by the HttpPayloadParser to retrieve the data |
|
|