Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
35768db8
Commit
35768db8
authored
9 years ago
by
Jorge Canizales
Browse files
Options
Downloads
Patches
Plain Diff
Mark the GRPCRequestHeaders protocol deprecated
parent
e1f74454
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/objective-c/GRPCClient/GRPCCall.h
+6
-0
6 additions, 0 deletions
src/objective-c/GRPCClient/GRPCCall.h
with
6 additions
and
0 deletions
src/objective-c/GRPCClient/GRPCCall.h
+
6
−
0
View file @
35768db8
...
@@ -50,6 +50,8 @@
...
@@ -50,6 +50,8 @@
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
#import <RxLibrary/GRXWriter.h>
#import <RxLibrary/GRXWriter.h>
#include
<AvailabilityMacros.h>
#pragma mark gRPC errors
#pragma mark gRPC errors
/** Domain of NSError objects produced by gRPC. */
/** Domain of NSError objects produced by gRPC. */
...
@@ -235,6 +237,7 @@ extern id const kGRPCTrailersKey;
...
@@ -235,6 +237,7 @@ extern id const kGRPCTrailersKey;
#pragma mark Backwards compatibiity
#pragma mark Backwards compatibiity
/** This protocol is kept for backwards compatibility with existing code. */
/** This protocol is kept for backwards compatibility with existing code. */
DEPRECATED_MSG_ATTRIBUTE
(
"Use NSDictionary or NSMutableDictionary instead."
)
@protocol
GRPCRequestHeaders
<
NSObject
>
@protocol
GRPCRequestHeaders
<
NSObject
>
@property
(
nonatomic
,
readonly
)
NSUInteger
count
;
@property
(
nonatomic
,
readonly
)
NSUInteger
count
;
...
@@ -245,6 +248,9 @@ extern id const kGRPCTrailersKey;
...
@@ -245,6 +248,9 @@ extern id const kGRPCTrailersKey;
-
(
void
)
removeObjectForKey
:(
NSString
*
)
key
;
-
(
void
)
removeObjectForKey
:(
NSString
*
)
key
;
@end
@end
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
/** This is only needed for backwards-compatibility. */
/** This is only needed for backwards-compatibility. */
@interface
NSMutableDictionary
(
GRPCRequestHeaders
)
<
GRPCRequestHeaders
>
@interface
NSMutableDictionary
(
GRPCRequestHeaders
)
<
GRPCRequestHeaders
>
@end
@end
#pragma clang diagnostic pop
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment