implicit final class AcceptLanguage extends AnyVal
Provides standardized access to Accept-Language header.
- Alphabetic
- By Inheritance
- AcceptLanguage
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AcceptLanguage(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
acceptLanguage: Seq[LanguageRange]
Gets Accept-Language header values.
Gets Accept-Language header values.
- returns
header values or empty sequence if Accept-Language is not present
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getAcceptLanguage: Option[Seq[LanguageRange]]
Gets Accept-Language header values if present.
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
hasAcceptLanguage: Boolean
Tests for Accept-Language header.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
removeAcceptLanguage: HttpRequest
Creates new request removing Accept-Language header.
-
def
setAcceptLanguage(one: LanguageRange, more: LanguageRange*): HttpRequest
Creates new request setting Accept-Language header to supplied values.
-
def
setAcceptLanguage(values: Seq[LanguageRange]): HttpRequest
Creates new request setting Accept-Language header to supplied values.
-
def
toString(): String
- Definition Classes
- Any
Provided herein is API documentation for Scamper, the HTTP library for Scala.