diff options
author | David Garcia Quintas <dgq@google.com> | 2016-05-06 16:59:03 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2016-05-09 14:30:41 -0700 |
commit | a301eaade83854cf172d39899232835f21e57690 (patch) | |
tree | 2915d1d66fd9b594e8a68963586dac8a5970b2d7 /src/objective-c | |
parent | c916c1ce17fe273dff881e1c87e17ad991c2078a (diff) |
Allow servers to select compression level via initial MD.
Setting the newly added compression_level field of
grpc_op::send_initial_metadata by a server now has the effect of
applying that compression level for the subsequent call messages leaving
the server. The ultimate meaning of the level depends on the client's
supported compression algorithms.
Diffstat (limited to 'src/objective-c')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCWrappedCall.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m index 16e5bff7ff..f72ec9068e 100644 --- a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m +++ b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m @@ -72,6 +72,7 @@ _op.op = GRPC_OP_SEND_INITIAL_METADATA; _op.data.send_initial_metadata.count = metadata.count; _op.data.send_initial_metadata.metadata = metadata.grpc_metadataArray; + _op.data.send_initial_metadata.compression_level = 0; _handler = handler; } return self; |