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