Metadata

akka.grpc.javadsl.Metadata
@DoNotInherit @ApiMayChange
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

def asList(): List[Pair[String, MetadataEntry]]

Attributes

Returns:

A list of (key, entry) pairs. Pairs with the same key will be ordered based on when they were added or received.

Source:
Metadata.scala
def asMap(): Map[String, List[MetadataEntry]]

Attributes

Returns:

A map from keys to a list of metadata entries. Entries with the same key will be ordered based on when they were added or received.

Source:
Metadata.scala

Attributes

Returns:

Returns the scaladsl.Metadata interface for this instance.

Source:
Metadata.scala
def getBinary(key: String): Optional[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): Optional[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