Interface ResponseCompressionAnalyzer

    • Method Detail

      • isGZipSupported

        boolean isGZipSupported()
        Checks the Accept-Encoding request header for a "gzip" token. Ensures that the protocol is not "HTTP/1.0", which does not correctly support GZip encoding (in older Internet Explorer browsers).
        Returns:
        true if gzip is supported by client
      • isGZipEnabled

        boolean isGZipEnabled​(ContentType contentType)
        Uses CompressionAnalyzer to determine if the content is compressable, but only if the request indicates the client supports compression.
        Parameters:
        contentType -
        Returns:
        true if the content can be compressed for the current request
        Since:
        5.4