Skip to content

Conversation

@math-hiyoko
Copy link

@math-hiyoko math-hiyoko commented Aug 5, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add gzip compression options for Java client send/receive

1 participant