HeaderMetadataImpl

akka.grpc.internal.HeaderMetadataImpl
@InternalApi
class HeaderMetadataImpl(headers: Seq[HttpHeader]) extends Metadata

This class wraps a list of headers from an HttpResponse with the Metadata interface.

Attributes

headers

The list of HTTP response headers.

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

Members list

Concise view

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