Metadata

akka.grpc.scaladsl.Metadata
@ApiMayChange @DoNotInherit
trait Metadata

Immutable representation of the metadata in a call

Not for user extension

Attributes

Source:
Metadata.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

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

Attributes

Returns:

A list of (key, MetadataEntry) tuples.

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

Attributes

Returns:

The metadata as a map.

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

Attributes

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]

Attributes

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