aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar makdharma <makdharma@users.noreply.github.com>2016-09-01 09:15:30 -0700
committerGravatar GitHub <noreply@github.com>2016-09-01 09:15:30 -0700
commit9d7e049d03cedca3b4b0e08d0cba1d1e718fa8ae (patch)
treeb8b9ab871227046aae957e45f6ef8e7b3bd08dda /include
parent463ff57440f4b7b983579008955a6f50d3605fc1 (diff)
parent3f374386e6507be0440021d03ee8904f05981d88 (diff)
Merge pull request #7862 from makdharma/grpc_caching
prep work for enabling caching
Diffstat (limited to 'include')
-rw-r--r--include/grpc/impl/codegen/grpc_types.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/grpc/impl/codegen/grpc_types.h b/include/grpc/impl/codegen/grpc_types.h
index e5a82883be..b3372d7c31 100644
--- a/include/grpc/impl/codegen/grpc_types.h
+++ b/include/grpc/impl/codegen/grpc_types.h
@@ -222,10 +222,14 @@ typedef enum grpc_call_error {
#define GRPC_INITIAL_METADATA_IDEMPOTENT_REQUEST (0x00000010u)
/** Signal that the call should not return UNAVAILABLE before it has started */
#define GRPC_INITIAL_METADATA_IGNORE_CONNECTIVITY (0x00000020u)
+/** Signal that the call is cacheable. GRPC is free to use GET verb */
+#define GRPC_INITIAL_METADATA_CACHEABLE_REQUEST (0x00000040u)
+
/** Mask of all valid flags */
-#define GRPC_INITIAL_METADATA_USED_MASK \
- (GRPC_INITIAL_METADATA_IDEMPOTENT_REQUEST | \
- GRPC_INITIAL_METADATA_IGNORE_CONNECTIVITY)
+#define GRPC_INITIAL_METADATA_USED_MASK \
+ (GRPC_INITIAL_METADATA_IDEMPOTENT_REQUEST | \
+ GRPC_INITIAL_METADATA_IGNORE_CONNECTIVITY | \
+ GRPC_INITIAL_METADATA_CACHEABLE_REQUEST)
/** A single metadata element */
typedef struct grpc_metadata {