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
Ordering
- Alphabetic
- By Inheritance
Inherited
- HeaderMetadataImpl
- Metadata
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new HeaderMetadataImpl(headers: Seq[HttpHeader] = immutable.Seq.empty)
- headers
The list of HTTP response headers.
Value Members
- def asList: List[(String, MetadataEntry)]
- returns
A list of (key, MetadataEntry) tuples.
- Definition Classes
- HeaderMetadataImpl → Metadata
- def asMap: Map[String, List[MetadataEntry]]
- returns
The metadata as a map.
- Definition Classes
- HeaderMetadataImpl → Metadata
- 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
- HeaderMetadataImpl → Metadata
- 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
- HeaderMetadataImpl → Metadata
- def toString(): String
- Definition Classes
- HeaderMetadataImpl → AnyRef → Any