def flush(self, include_footers: bool = False) -> "Future[None]":
"""Flushes the current output buffer to the network.
- The ``callback`` argument, if given, can be used for flow control:
- it will be run when all flushed data has been written to the socket.
- Note that only one flush callback can be outstanding at a time;
- if another flush occurs before the previous flush's callback
- has been run, the previous callback will be discarded.
-
.. versionchanged:: 4.0
Now returns a `.Future` if no callback is given.