Grpc.Core.Metadata
A collection of metadata entries that can be exchanged during a call.
gRPC supports these types of metadata:
Request headersare sent by the client at the beginning of a remote call before any request messages are sent.Response headersare sent by the server at the beginning of a remote call handler before any response messages are sent.Response trailersare sent by the server at the end of a remote call along with resulting call status.
Metadata entry
All binary headers should have this suffix.
An read-only instance of metadata containing no entries.
public Metadata()
Initializes a new instance of Metadata.
Adds a new ASCII-valued metadata entry.
Adds a new binary-valued metadata entry.
Gets the last metadata entry with the specified key.
If there are no matching entries then null is returned.
Gets all metadata entries with the specified key.
Gets the string value of the last metadata entry with the specified key.
If the metadata entry is binary then an exception is thrown.
If there are no matching entries then null is returned.
Gets the bytes value of the last metadata entry with the specified key.
If the metadata entry is not binary the string value will be returned as ASCII encoded bytes.
If there are no matching entries then null is returned.