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