c

akka.grpc.internal

EntryMetadataImpl

class EntryMetadataImpl extends Metadata

This class represents metadata as a list of (key, entry) tuples.

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

Instance Constructors

  1. new EntryMetadataImpl(entries: List[(String, MetadataEntry)] = Nil)

    entries

    The list of (key, entry) tuples.

Value Members

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

    returns

    A list of (key, MetadataEntry) tuples.

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

    returns

    The metadata as a map.

    Definition Classes
    EntryMetadataImplMetadata
  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
    EntryMetadataImplMetadata
  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
    EntryMetadataImplMetadata
  5. def toString(): String
    Definition Classes
    EntryMetadataImpl → AnyRef → Any