Upgrade

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

Adds standardized access to Upgrade header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def hasUpgrade: Boolean

Tests for Upgrade header.

Tests for Upgrade header.

Attributes

def setUpgrade(values: Seq[Protocol]): T

Creates new message with Upgrade header set to supplied values.

Creates new message with Upgrade header set to supplied values.

Attributes

def setUpgrade(one: Protocol, more: Protocol*): T

Creates new message with Upgrade header set to supplied values.

Creates new message with Upgrade header set to supplied values.

Attributes

def upgrade: Seq[Protocol]

Gets Upgrade header values.

Gets Upgrade header values.

Attributes

Returns

header values or empty sequence if Upgrade is not present

def upgradeOption: Option[Seq[Protocol]]

Gets Upgrade header values if present.

Gets Upgrade header values if present.

Attributes

Creates new message with Upgrade header removed.

Creates new message with Upgrade header removed.

Attributes