@Override
    public Cookies get(URI uri) {
        requireNonNull(uri, "uri");
        if (store.isEmpty()) {
            return Cookies.of();
        }
        final String host = uri.getHost();
        final String path = uri.getPath().isEmpty() ? "/" : uri.getPath();
        final boolean secure = isSecure(uri.getScheme());
        final Set<Cookie> cookies = new HashSet<>();
        lock.lock();
        try {
            filterGet(cookies, host, path, secure);
        } finally {
            lock.unlock();
        }
        return Cookies.of(cookies);
    }
Used to find cookies for a host that matches a domain. For example, if there is a domain example.com,
host example.com or foo.example.com will match all cookies in that entry.
core/src/main/java/com/linecorp/armeria/client/cookie/DefaultCookieJar.java