def __init__(self, connection, keep_alive=True, ignore_length=False): self._connection = connection self._keep_alive = keep_alive self._ignore_length = ignore_length self._data_event_dispatcher = DataEventDispatcher() self._read_size = 4096 self._decompressor = None
def __init__(self, connection: Connection): self._connection = connection self._data_event_dispatcher = DataEventDispatcher()