diff --git a/reactor-netty-http/src/main/java/reactor/netty/http/client/HttpClient.java b/reactor-netty-http/src/main/java/reactor/netty/http/client/HttpClient.java index 515bc6c6f0..e090d1882f 100644 --- a/reactor-netty-http/src/main/java/reactor/netty/http/client/HttpClient.java +++ b/reactor-netty-http/src/main/java/reactor/netty/http/client/HttpClient.java @@ -516,9 +516,13 @@ public final HttpClient baseUrl(String baseUrl) { } /** - * Specifies whether GZip compression is enabled. + * Specifies whether compression (gzip, Brotli, and zstd) is enabled. * - * @param compressionEnabled if true GZip compression is enabled otherwise disabled (default: false) + *

Note: Brotli and zstd compressions require additional dependencies. + * + *

Note: For zstd compression, {@literal Accept-Encoding: zstd} header needs to be added explicitly. + * + * @param compressionEnabled if true, compression (gzip, Brotli, and zstd) is enabled, otherwise disabled (default: false) * @return a new {@link HttpClient} */ public final HttpClient compress(boolean compressionEnabled) {