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