Warning

scamper.http.headers.Warning
final class Warning[T <: HttpMessage](message: T) extends AnyVal

Adds standardized access to Warning header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def hasWarning: Boolean

Tests for Warning header.

Tests for Warning header.

Attributes

def setWarning(values: Seq[WarningType]): T

Creates new message with Warning header set to supplied values.

Creates new message with Warning header set to supplied values.

Attributes

def setWarning(one: WarningType, more: WarningType*): T

Creates new message with Warning header set to supplied values.

Creates new message with Warning header set to supplied values.

Attributes

def warning: Seq[WarningType]

Gets Warning header values.

Gets Warning header values.

Attributes

Returns

header values or empty sequence if Warning is not present

def warningOption: Option[Seq[WarningType]]

Gets Warning header values if present.

Gets Warning header values if present.

Attributes

Creates new message with Warning header removed.

Creates new message with Warning header removed.

Attributes