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