'Transmit headers to the client, via self._write()'

def send_headers(self):

    self.cleanup_headers()
    self.headers_sent = True
    if ((not self.origin_server) or self.client_is_modern()):
        self.send_preamble()
        self._write(str(self.headers))
