implicit final class Accept extends AnyVal
Provides standardized access to Accept header.
- Alphabetic
- By Inheritance
- Accept
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Accept(request: HttpRequest)
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 accept: Seq[MediaRange]
Gets Accept header values.
Gets Accept header values.
- returns
header values or empty sequence if Accept is not present
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getAccept: Option[Seq[MediaRange]]
Gets Accept header values if present.
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def hasAccept: Boolean
Tests whether Accept header is present.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def removeAccept(): HttpRequest
Creates new request removing Accept header.
- def toString(): String
- Definition Classes
- Any
- def withAccept(values: MediaRange*): HttpRequest
Creates new request setting Accept header to supplied values.