client icon indicating copy to clipboard operation
client copied to clipboard

feat: add gzip & deflate compression support for java

Open math-hiyoko opened this issue 4 months ago • 0 comments

Summary

This pull request implements optional gzip and deflate compression for both outbound requests and inbound responses in the Triton Java client. Users can now specify "gzip" or "deflate" as the compression algorithm on their InferArguments, and the client will automatically compress the request body and/or decompress the response body.

API Changes

Added methods to InferArguments class:

public void setRequestCompressionAlgorithm(String algorithm)
public void setResponseCompressionAlgorithm(String algorithm)

Valid values (case-insensitive):

  • "gzip"
  • "deflate"
  • null or any other value → no compression/decompression (default).

close #845

math-hiyoko avatar Aug 05 '25 08:08 math-hiyoko