diff options
author | Muxi Yan <mxyan@google.com> | 2017-12-21 16:52:39 -0800 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2017-12-21 17:03:24 -0800 |
commit | c47b3f5c3afa57ccb2bb64426f1aa91ecf6d4bfe (patch) | |
tree | ffc2af1410c6e27451682cc8ae3208e8677552bc /src/objective-c/GRPCClient/GRPCCall+ChannelArg.h | |
parent | d55110b91571e362ddd1f78848a8a30ff61d3c47 (diff) |
Add interface to API to enable compression
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCall+ChannelArg.h')
-rw-r--r-- | src/objective-c/GRPCClient/GRPCCall+ChannelArg.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall+ChannelArg.h b/src/objective-c/GRPCClient/GRPCCall+ChannelArg.h index 9f2361bd22..18d4597098 100644 --- a/src/objective-c/GRPCClient/GRPCCall+ChannelArg.h +++ b/src/objective-c/GRPCClient/GRPCCall+ChannelArg.h @@ -19,6 +19,12 @@ #include <AvailabilityMacros.h> +typedef NS_ENUM(NSInteger, GRPCCompressAlgorithm) { + GRPCCompressNone, + GRPCCompressDeflate, + GRPCCompressGzip, +}; + /** * Methods to configure GRPC channel options. */ @@ -36,4 +42,8 @@ + (void)closeOpenConnections DEPRECATED_MSG_ATTRIBUTE("The API for this feature is experimental, " "and might be removed or modified at any " "time."); + ++ (void)setDefaultCompressMethod:(GRPCCompressAlgorithm)algorithm + forhost:(nonnull NSString *)host; + @end |