Via

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

Adds standardized access to Via header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def hasVia: Boolean

Tests for Via header.

Tests for Via header.

Attributes

def setVia(values: Seq[ViaType]): T

Creates new message with Via header set to supplied values.

Creates new message with Via header set to supplied values.

Attributes

def setVia(one: ViaType, more: ViaType*): T

Creates new message with Via header set to supplied values.

Creates new message with Via header set to supplied values.

Attributes

def via: Seq[ViaType]

Gets Via header values.

Gets Via header values.

Attributes

Returns

header values or empty sequence if Via is not present

def viaOption: Option[Seq[ViaType]]

Gets Via header values if present.

Gets Via header values if present.

Attributes

def viaRemoved: T

Creates new message with Via header removed.

Creates new message with Via header removed.

Attributes