client
client copied to clipboard
feat: add gzip & deflate compression support for java
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