def httpconnection_patched_endheaders(self, message_body=None):
 if (self._HTTPConnection__state == _CS_REQ_STARTED):
  self._HTTPConnection__state = _CS_REQ_SENT
 else:
  raise CannotSendHeader()
 self._send_output(message_body)

def httpconnection_patched_endheaders ( self , message_body = None ) : if ( self . _HTTPConnection__state == _CS_REQ_STARTED ) : self . _HTTPConnection__state = _CS_REQ_SENT else : raise CannotSendHeader ( ) self . _send_output ( message_body )
indicate that the last header line has been sent to the server .