def __init__(self, poller): ServerHTTP.__init__(self, poller) self._dispatch = { "/api": self._api, "/api/": self._api, "/api/results": api_results.api_results, "/api/config": config_api.config_api, "/api/debug": self._api_debug, "/api/index": self._api_index, "/api/exit": self._api_exit, "/api/log": log_api.log_api, "/api/runner": runner_api.runner_api, "/api/state": self._api_state, "/api/version": self._api_version, }
def __init__(self, poller): ServerHTTP.__init__(self, poller) self._dispatch = { "/api": self._api, "/api/": self._api, "/api/bittorrent": self._api_bittorrent, "/api/config": self._api_config, "/api/configlabels": self._api_configlabels, "/api/debug": self._api_debug, "/api/index": self._api_index, "/api/exit": self._api_exit, "/api/log": self._api_log, "/api/speedtest": self._api_speedtest, "/api/state": self._api_state, "/api/version": self._api_version, }
def __init__(self, poller): ''' Initialize the negotiator ''' ServerHTTP.__init__(self, poller) self.queue = collections.deque() self.modules = {} self.known = set()
def __init__(self, poller): ServerHTTP.__init__(self, poller) self.negotiator = NEGOTIATOR
def __init__(self, poller): ServerHTTP.__init__(self, poller) self.begin_test = 0 POLLER.sched(3, self._speedtest_check_timeout) self.test_server = ServerTest(poller)