public static class GzipCompressionPolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GzipCompressionPolicy |
build() |
GzipCompressionPolicy.Builder |
copy(GzipCompressionPolicy model) |
GzipCompressionPolicy.Builder |
isEnabled(Boolean isEnabled)
When true, support for gzip compression is enabled.
|
public GzipCompressionPolicy.Builder isEnabled(Boolean isEnabled)
When true, support for gzip compression is enabled. HTTP responses will be compressed with gzip only if the client indicates support for gzip via the “Accept-Encoding: gzip” request header.
When false, support for gzip compression is disabled and HTTP responses will not be compressed with gzip even if the client indicates support for gzip.
isEnabled
- the value to setpublic GzipCompressionPolicy build()
public GzipCompressionPolicy.Builder copy(GzipCompressionPolicy model)
Copyright © 2016–2024. All rights reserved.