diff options
author | 2015-02-13 16:25:33 -0800 | |
---|---|---|
committer | 2015-02-13 16:25:33 -0800 | |
commit | 406b32f663d14994a24abea3788d0bffce216f8a (patch) | |
tree | f0a6fb5dabbfc589cc79f25a0038e99ea5c2d283 /include/grpc++/server_context.h | |
parent | 0e0d8e11e63629a3953ceed60278f7ff2abd21d7 (diff) |
Add missing APIs and a first metadata test, and test passes
Diffstat (limited to 'include/grpc++/server_context.h')
-rw-r--r-- | include/grpc++/server_context.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grpc++/server_context.h b/include/grpc++/server_context.h index 423ebf2337..ec7b8062f9 100644 --- a/include/grpc++/server_context.h +++ b/include/grpc++/server_context.h @@ -76,6 +76,10 @@ class ServerContext final { void AddInitialMetadata(const grpc::string& key, const grpc::string& value); void AddTrailingMetadata(const grpc::string& key, const grpc::string& value); + std::multimap<grpc::string, grpc::string> client_metadata() { + return client_metadata_; + } + private: friend class ::grpc::Server; template <class R> |