def METHOD_NAME(self):
    self.send_response(200)
    self.send_header("Content-type", "text/html")
    self.end_headers()
    buffer_size = 1024 * 1024
    for i in range(0, len(html), buffer_size):
        self.wfile.write(html[i : i + buffer_size])