public final HttpServer compress(BiPredicate<HttpServerRequest, HttpServerResponse> predicate) {
		Objects.requireNonNull(predicate, "compressionPredicate");
		return tcpConfiguration(tcp -> tcp.bootstrap(b -> HttpServerConfiguration.compressPredicate(b, predicate)));
	}
public final HttpServer compress ( BiPredicate < HttpServerRequest , HttpServerResponse > predicate ) { Objects . requireNonNull ( predicate , "compressionPredicate" ) ; return tcpConfiguration ( tcp -> tcp . bootstrap ( b -> HttpServerConfiguration . compressPredicate ( b , predicate ) ) ) ; }
Enable GZip response compression if the client request presents accept encoding
headers and the provided {@link java.util.function.Predicate} matches.
<p>
Note: the passed {@link HttpServerRequest} and {@link HttpServerResponse}
should be considered read-only and the implement SHOULD NOT consume or
write the request/response in this predicate.
</p>

@param predicate that returns true to compress the response.

@return a new {@link HttpServer}