|
|
|
@ -138,12 +138,14 @@ class ClientContext { |
|
|
|
|
void AddMetadata(const grpc::string& meta_key, |
|
|
|
|
const grpc::string& meta_value); |
|
|
|
|
|
|
|
|
|
const std::multimap<grpc::string, grpc::string>& GetServerInitialMetadata() { |
|
|
|
|
const std::multimap<grpc::string_ref, grpc::string_ref>& |
|
|
|
|
GetServerInitialMetadata() { |
|
|
|
|
GPR_ASSERT(initial_metadata_received_); |
|
|
|
|
return recv_initial_metadata_; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const std::multimap<grpc::string, grpc::string>& GetServerTrailingMetadata() { |
|
|
|
|
const std::multimap<grpc::string_ref, grpc::string_ref>& |
|
|
|
|
GetServerTrailingMetadata() { |
|
|
|
|
// TODO(yangg) check finished
|
|
|
|
|
return trailing_metadata_; |
|
|
|
|
} |
|
|
|
@ -234,8 +236,8 @@ class ClientContext { |
|
|
|
|
mutable std::shared_ptr<const AuthContext> auth_context_; |
|
|
|
|
struct census_context* census_context_; |
|
|
|
|
std::multimap<grpc::string, grpc::string> send_initial_metadata_; |
|
|
|
|
std::multimap<grpc::string, grpc::string> recv_initial_metadata_; |
|
|
|
|
std::multimap<grpc::string, grpc::string> trailing_metadata_; |
|
|
|
|
std::multimap<grpc::string_ref, grpc::string_ref> recv_initial_metadata_; |
|
|
|
|
std::multimap<grpc::string_ref, grpc::string_ref> trailing_metadata_; |
|
|
|
|
|
|
|
|
|
grpc_call* propagate_from_call_; |
|
|
|
|
PropagationOptions propagation_options_; |
|
|
|
|