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