

def endheaders(self, message_body=None):
    'Indicate that the last header line has been sent to the server.\n\n        This method sends the request to the server.  The optional message_body\n        argument can be used to pass a message body associated with the\n        request.  The message body will be sent in the same packet as the\n        message headers if it is a string, otherwise it is sent as a separate\n        packet.\n        '
    if (self.__state == _CS_REQ_STARTED):
        self.__state = _CS_REQ_SENT
    else:
        raise CannotSendHeader()
    self._send_output(message_body)

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