Interface HttpCompressionStrategy

All Superinterfaces:
Toggleable

public interface HttpCompressionStrategy extends Toggleable
Determines if a given http message should be compressed. It should be assumed the client allows for compressed responses.
Since:
1.2.0
Author:
James Kleeh
  • Method Details

    • shouldCompress

      boolean shouldCompress(io.netty.handler.codec.http.HttpResponse response)
      Parameters:
      response - The HTTP response
      Returns:
      True if the response should be compressed
    • getCompressionLevel

      default int getCompressionLevel()
      Returns:
      The compression level (0-9)
    • getMaxZstdEncodeSize

      int getMaxZstdEncodeSize()
      Returns:
      The maximum size of data that can be encoded using the zstd algorithm.