private ContentType getContentOrDefault(final ContentType def) {
        return this.contentType != null ? this.contentType : def;
    }
Sets entities to be GZIP compressed.

@return this instance.
httpclient5/src/main/java/org/apache/hc/client5/http/entity/EntityBuilder.java