public static Function<? super HttpClient, CookieClient> newDecorator(CookiePolicy cookiePolicy) {
        requireNonNull(cookiePolicy, "cookiePolicy");
        return newDecorator(new DefaultCookieJar(cookiePolicy));
    }
Creates a new {@link CookieClient} decorator with a specified {@link CookiePolicy}.
core/src/main/java/com/linecorp/armeria/client/cookie/CookieClient.java