if method == "POST":
            headers["Expect"] = "100-continue"
#            headers["Content-Length"] = str(len(body))
            headers["Transfer-Encoding"] = "chunked"
        self._ready_to_send_body = False
        self._eof_received = False
        self.body = body
        self.response = b""
        self.transport.write("{} {} HTTP/1.1\r\n".format(method, url).encode())
        for header in headers:
            self.transport.write("{}:{}\r\n".format(header, headers[header]).encode())
        self.transport.write(b"\r\n")
        self._send_body()
        return self.response

def _send_head(self):
        self._transport.write("{} {} HTTP/1.1\r\n".format(self._method, self._url).encode())
        for header in self._headers:
            self._transport.write("{}:{}\r\n".format(header, self._headers[header]).encode())
        self._transport.write(b"\r\n")
        print("Sent head")
#        self._request_future = asyncio.async(self._send_body())

#        self._event_loop.run_until_complete(self._conn_coroutine)

        """
        if method == "POST":
            headers["Expect"] = "100-continue"
#            headers["Content-Length"] = str(len(body))
            headers["Transfer-Encoding"] = "chunked"
        self._ready_to_send_body = False
        self._eof_received = False
        self.body = body
        self.response = b""
        self.transport.write("{} {} HTTP/1.1\r\n".format(method, url).encode())
        for header in headers:
            self.transport.write("{}:{}\r\n".format(header, headers[header]).encode())
        self.transport.write(b"\r\n")
        self._send_body()
        return self.response
        """