|
|
|
@ -131,6 +131,13 @@ class ServerContext { |
|
|
|
|
/// end in "-bin".
|
|
|
|
|
/// \param value The metadata value. If its value is binary, the key name
|
|
|
|
|
/// must end in "-bin".
|
|
|
|
|
///
|
|
|
|
|
/// Metadata must conform to the following format:
|
|
|
|
|
/// Custom-Metadata -> Binary-Header / ASCII-Header
|
|
|
|
|
/// Binary-Header -> {Header-Name "-bin" } {binary value}
|
|
|
|
|
/// ASCII-Header -> Header-Name ASCII-Value
|
|
|
|
|
/// Header-Name -> 1*( %x30-39 / %x61-7A / "_" / "-" / ".") ; 0-9 a-z _ - .
|
|
|
|
|
/// ASCII-Value -> 1*( %x20-%x7E ) ; space and printable ASCII
|
|
|
|
|
void AddInitialMetadata(const grpc::string& key, const grpc::string& value); |
|
|
|
|
|
|
|
|
|
/// Add the (\a key, \a value) pair to the initial metadata
|
|
|
|
@ -145,6 +152,13 @@ class ServerContext { |
|
|
|
|
/// it must end in "-bin".
|
|
|
|
|
/// \param value The metadata value. If its value is binary, the key name
|
|
|
|
|
/// must end in "-bin".
|
|
|
|
|
///
|
|
|
|
|
/// Metadata must conform to the following format:
|
|
|
|
|
/// Custom-Metadata -> Binary-Header / ASCII-Header
|
|
|
|
|
/// Binary-Header -> {Header-Name "-bin" } {binary value}
|
|
|
|
|
/// ASCII-Header -> Header-Name ASCII-Value
|
|
|
|
|
/// Header-Name -> 1*( %x30-39 / %x61-7A / "_" / "-" / ".") ; 0-9 a-z _ - .
|
|
|
|
|
/// ASCII-Value -> 1*( %x20-%x7E ) ; space and printable ASCII
|
|
|
|
|
void AddTrailingMetadata(const grpc::string& key, const grpc::string& value); |
|
|
|
|
|
|
|
|
|
/// IsCancelled is always safe to call when using sync or callback API.
|
|
|
|
|