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