Send a blank line to the server, signalling the end of the headers. The optional message_body argument can be used to pass a message body associated with the request.
HTTPConnection.endheaders(message_body=None, *, encode_chunked=False)