public RedirectConfigBuilder allowDomains(
            BiPredicate<? super ClientRequestContext, ? super String> predicate) {
        requireNonNull(predicate, "predicate");
        if (this.predicate == null) {
            //noinspection unchecked
            this.predicate = (BiPredicate<ClientRequestContext, String>) predicate;
        } else {
            this.predicate = this.predicate.or(predicate);
        }
        return this;
    }
Sets the {@link BiPredicate} that returns {@code true} if the {@linkplain URI#getHost() host component}
of a redirection URI is allowed for automatic redirection.

<p>If the {@link WebClient} is created <b>without</b> a base URI, the {@link WebClient} executes
automatic redirection to all domains by default.
If the {@link WebClient} is created <b>with</b> a base URI, automatic redirection is executed to
the domain of the base URI by default.
core/src/main/java/com/linecorp/armeria/client/redirect/RedirectConfigBuilder.java