

def _send_output(self, message_body=None):
    'Send the currently buffered request and clear the buffer.\n\n        Appends an extra \\r\\n to the buffer.\n        A message_body may be specified, to be appended to the request.\n        '
    self._buffer.extend((bytes(b''), bytes(b'')))
    msg = bytes(b'\r\n').join(self._buffer)
    del self._buffer[:]
    if isinstance(message_body, bytes):
        msg += message_body
        message_body = None
    self.send(msg)
    if (message_body is not None):
        self.send(message_body)

dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/backports/http/client.py HTTPConnection._send_output/original