c

akka.grpc.internal

GrpcMetadataImpl

class GrpcMetadataImpl extends Metadata

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

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

Instance Constructors

  1. new GrpcMetadataImpl(delegate: Metadata)

    delegate

    The underlying mutable metadata.

Value Members

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

    returns

    A list of (key, MetadataEntry) tuples.

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

    returns

    The metadata as a map.

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