implicit final class Upgrade[T <: HttpMessage] extends AnyVal
Provides standardized access to Upgrade header.
- Alphabetic
- By Inheritance
- Upgrade
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Upgrade(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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
getUpgrade: Option[Seq[Protocol]]
Gets Upgrade header values if present.
-
def
hasUpgrade: Boolean
Tests for Upgrade header.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
removeUpgrade(implicit ev: <:<[T, MessageBuilder[T]]): T
Creates new message removing Upgrade header.
-
def
setUpgrade(one: Protocol, more: Protocol*)(implicit ev: <:<[T, MessageBuilder[T]]): T
Creates new message setting Upgrade header to supplied values.
-
def
setUpgrade(values: Seq[Protocol])(implicit ev: <:<[T, MessageBuilder[T]]): T
Creates new message setting Upgrade header to supplied values.
-
def
toString(): String
- Definition Classes
- Any
-
def
upgrade: Seq[Protocol]
Gets Upgrade header values.
Gets Upgrade header values.
- returns
header values or empty sequence if Upgrade is not present
Provided herein is API documentation for Scamper, the HTTP library for Scala.