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