def METHOD_NAME(port=80):
    if sys.version_info[0] >= 3:
        import http.server as SimpleHTTPServer
        import http.server as BaseHTTPServer
        import socketserver as SocketServer
    else:
        import SimpleHTTPServer
        import BaseHTTPServer
        import SocketServer
    class ThreadingSimpleServer(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer):
        pass
    class ServerHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
        def guess_type(self, path):
            for extn in [".log", ".tgen", ".cmd", ".env", ".cfg"]:
                if path.endswith(extn):
                    return 'text/plain'
            return SimpleHTTPServer.SimpleHTTPRequestHandler.guess_type(self, path)
    os.chdir("/")
    server = ThreadingSimpleServer(('', port), ServerHandler)
    thread = threading.Thread(target=server.serve_forever)
    thread.setDaemon(True)
    thread.start()