class
GRPC::Metadata
- GRPC::Metadata
- Reference
- Object
Overview
Metadata represents gRPC metadata (HTTP/2 headers), carrying key-value pairs. Binary-valued keys must end in "-bin" and their values are base64-encoded.
Defined in:
grpc/metadata.crConstructors
Instance Method Summary
- #[]=(key : String, value : String) : String
- #[]?(key : String) : String | Nil
- #add(key : String, value : String) : Nil
- #add_bin(key : String, value : Bytes) : Nil
- #add_wire(key : String, value : String) : Nil
-
#dup : self
Returns a shallow copy of this object.
- #each(&block : String, String -> ) : Nil
- #each_value(&block : String, Value -> ) : Nil
- #each_wire(&block : String, String -> ) : Nil
- #empty? : Bool
- #get(key : String) : String | Nil
- #get_all(key : String) : Array(String)
- #get_all_bin(key : String) : Array(Bytes)
- #get_bin(key : String) : Bytes | Nil
- #merge!(other : Metadata) : self
- #set(key : String, value : String) : Nil
- #set_bin(key : String, value : Bytes) : Nil
- #to_h : Hash(String, String)
Constructor Detail
Instance Method Detail
def dup : self
#
Description copied from class Reference
Returns a shallow copy of this object.
This allocates a new object and copies the contents of
self into it.