GrpcMetadataImpl

org.apache.pekko.grpc.internal.GrpcMetadataImpl
@InternalApi
class GrpcMetadataImpl(delegate: Metadata) extends Metadata

This class wraps a mutable Metadata from io.grpc with the Scala Metadata interface.

Value parameters

delegate

The underlying mutable metadata.

Attributes

Source
MetadataImpl.scala
Graph
Supertypes
trait Metadata
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

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

Attributes

Returns

A list of (key, MetadataEntry) tuples.

Definition Classes
Source
MetadataImpl.scala
override def asMap: Map[String, List[MetadataEntry]]

Attributes

Returns

The metadata as a map.

Definition Classes
Source
MetadataImpl.scala
override 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.

Definition Classes
Source
MetadataImpl.scala
override 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.

Definition Classes
Source
MetadataImpl.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
MetadataImpl.scala