implicit final class AcceptEncoding[T <: HttpMessage] extends AnyVal
Provides standardized access to Accept-Encoding header.
- Alphabetic
- By Inheritance
- AcceptEncoding
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AcceptEncoding(message: T)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
def
acceptEncoding: Seq[ContentCodingRange]
Gets Accept-Encoding header values.
Gets Accept-Encoding header values.
- returns
header values or empty sequence if Accept-Encoding is not present
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getAcceptEncoding: Option[Seq[ContentCodingRange]]
Gets Accept-Encoding header values if present.
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
hasAcceptEncoding: Boolean
Tests whether Accept-Encoding header is present.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val message: T
-
def
removeAcceptEncoding()(implicit ev: <:<[T, MessageBuilder[T]]): T
Creates new message removing Accept-Encoding header.
-
def
toString(): String
- Definition Classes
- Any
-
def
withAcceptEncoding(values: ContentCodingRange*)(implicit ev: <:<[T, MessageBuilder[T]]): T
Creates new message setting Accept-Encoding header to supplied values.