c

akka.grpc.internal

HeaderMetadataImpl

class HeaderMetadataImpl extends Metadata

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

Annotations
@InternalApi()
Source
MetadataImpl.scala
Linear Supertypes
Metadata, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HeaderMetadataImpl
  2. Metadata
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new HeaderMetadataImpl(headers: Seq[HttpHeader] = immutable.Seq.empty)

    headers

    The list of HTTP response headers.

Value Members

  1. def asList: List[(String, MetadataEntry)]

    returns

    A list of (key, MetadataEntry) tuples.

    Definition Classes
    HeaderMetadataImplMetadata
  2. def asMap: Map[String, List[MetadataEntry]]

    returns

    The metadata as a map.

    Definition Classes
    HeaderMetadataImplMetadata
  3. 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.

    Definition Classes
    HeaderMetadataImplMetadata
  4. 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.

    Definition Classes
    HeaderMetadataImplMetadata
  5. def toString(): String
    Definition Classes
    HeaderMetadataImpl → AnyRef → Any