def run(conf): httpd = HTTPServer((conf.server_host, conf.server_port), RequestHandler) httpd.conf = conf httpd.serve_forever()