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