def start(self, hostname=None, port=None):
        """ Spawns a new HTTP server, residing on defined hostname and port
        :param hostname: the default hostname the server should listen on.
        :param port: the default port of the server.
        """
        if hostname is None:
            hostname = settings.settings['mx_host']
        if port is None:
            port = settings.settings['mx_port']

        reloader = False        # use_reloader: the default setting for the reloader.
        debugger = False        #
        evalex = True           # should the exception evaluation feature be enabled?
        threaded = False        # True if each request is handled in a separate thread
        processes = 1           # if greater than 1 then handle each request in a new process
        reloader_interval = 1   # the interval for the reloader in seconds.
        static_files = None     # static_files: optional dict of static files.
        extra_files = None      # extra_files: optional list of extra files to track for reloading.
        ssl_context = None      # ssl_context: optional SSL context for running server in HTTPS mode.

        self.mx_thread = Thread(target=run_simple(hostname=hostname,
                                                  port=port,
                                                  application=self,
                                                  use_debugger=debugger,
                                                  use_evalex=evalex,
                                                  extra_files=extra_files,
                                                  use_reloader=reloader,
                                                  reloader_interval=reloader_interval,
                                                  threaded=threaded,
                                                  processes=processes,
                                                  static_files=static_files,
                                                  ssl_context=ssl_context))
        self.mx_thread.daemon = True
        self.mx_thread.start()
def start ( self , hostname = None , port = None ) : if hostname is None : hostname = settings . settings [ 'mx_host' ] if port is None : port = settings . settings [ 'mx_port' ] reloader = False debugger = False evalex = True threaded = False processes = 1 reloader_interval = 1 static_files = None extra_files = None ssl_context = None self . mx_thread = Thread ( target = run_simple ( hostname = hostname , port = port , application = self , use_debugger = debugger , use_evalex = evalex , extra_files = extra_files , use_reloader = reloader , reloader_interval = reloader_interval , threaded = threaded , processes = processes , static_files = static_files , ssl_context = ssl_context ) ) self . mx_thread . daemon = True self . mx_thread . start ( )
Spawns a new HTTP server, residing on defined hostname and port
        :param hostname: the default hostname the server should listen on.
        :param port: the default port of the server.