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