File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -516,11 +516,16 @@ func (o CompressorCallOption) before(c *callInfo) error {
516516}
517517func (o CompressorCallOption ) after (* callInfo , * csAttempt ) {}
518518
519+ // AcceptCompressors returns a CallOption that limits the compression algorithms
520+ // advertised in the grpc-accept-encoding header for response messages.
521+ // Compression algorithms not in the provided list will not be advertised, and
522+ // responses compressed with non-listed algorithms will be rejected.
519523func AcceptCompressors (names ... string ) CallOption {
520524 cp := append ([]string (nil ), names ... )
521525 return AcceptCompressorsCallOption {names : cp }
522526}
523527
528+ // AcceptCompressorsCallOption is a CallOption that limits response compression.
524529type AcceptCompressorsCallOption struct {
525530 names []string
526531}
You can’t perform that action at this time.
0 commit comments