private void filterGet(Set<Cookie> cookies, String host, String path, boolean secure) {
        final long currentTimeMillis = System.currentTimeMillis();
        for (Map.Entry<String, Set<Cookie>> entry : filter.entrySet()) {
            if (domainMatches(entry.getKey(), host)) {
                final Iterator<Cookie> it = entry.getValue().iterator();
                while (it.hasNext()) {
                    final Cookie cookie = it.next();
                    final long createdTimeMillis = store.getOrDefault(cookie, Long.MIN_VALUE);
                    if (createdTimeMillis == Long.MIN_VALUE) {
                        // the cookie has been removed from the main store so remove it from filter also
                        it.remove();
                        break;
                    }
                    if (isExpired(cookie, createdTimeMillis, currentTimeMillis)) {
                        it.remove();
                        store.removeLong(cookie);
                        break;
                    }
                    if (cookieMatches(cookie, host, path, secure)) {
                        cookies.add(cookie);
                    }
                }
            }
        }
    }
Ensures this cookie has domain and path attributes, otherwise sets them to default values. If domain
is absent, the default is the request host, with {@code host-only} flag set to {@code true}. If path is
absent, the default is computed from the request path. See RFC 6265
<a href="https://datatracker.ietf.org/doc/html/rfc6265#section-5.3">5.3</a> and
<a href="https://datatracker.ietf.org/doc/html/rfc6265#section-5.1.4">5.1.4</a>
core/src/main/java/com/linecorp/armeria/client/cookie/DefaultCookieJar.java