@staticmethod
    def action_check_host(request):
        hostname = extract_url_hostname(request['host'])
        try:
            is_active = Host.get(Host.hostname == hostname).is_active
        except __HOLE__:
            is_active = False

        return {
            'result': 'active' if is_active else 'inactive',
            'host': request['host']
        }
dataset/ETHPy150Open CacheBrowser/cachebrowser/cachebrowser/api.py/APIHandler.action_check_host