318
294
# no active command object, so ignore the event.
320
296
self._run_handler_code(self._command.do_chunk, (bytes,), {})
326
299
"""No more body data will be received."""
327
300
self._run_handler_code(self._command.do_end, (), {})
328
301
# cannot read after this.
329
302
self.finished_reading = True
333
304
def _run_handler_code(self, callable, args, kwargs):
334
305
"""Run some handler specific code 'callable'.