Metadata

@ApiMayChange @DoNotInherit
trait Metadata

Immutable representation of the metadata in a call

Not for user extension

Source:
Metadata.scala
class Object
trait Matchable
class Any

Value members

Abstract methods

@ApiMayChange
def asList: List[(String, MetadataEntry)]
Returns:

A list of (key, MetadataEntry) tuples.

Source:
Metadata.scala
@ApiMayChange
def asMap: Map[String, List[MetadataEntry]]
Returns:

The metadata as a map.

Source:
Metadata.scala
def getBinary(key: String): Option[ByteString]
Returns:

The binary header value for key if one exists, if the same key has multiple values the last occurrence that is a text key is used.

Source:
Metadata.scala
def getText(key: String): Option[String]
Returns:

The text header value for key if one exists, if the same key has multiple values the last occurrence that is a text key is used.

Source:
Metadata.scala