Trailer

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

Adds standardized access to Trailer header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def hasTrailer: Boolean

Tests for Trailer header.

Tests for Trailer header.

Attributes

def setTrailer(values: Seq[String]): T

Creates new message with Trailer header set to supplied values.

Creates new message with Trailer header set to supplied values.

Attributes

def setTrailer(one: String, more: String*): T

Creates new message with Trailer header set to supplied values.

Creates new message with Trailer header set to supplied values.

Attributes

def trailer: Seq[String]

Gets Trailer header values.

Gets Trailer header values.

Attributes

Returns

header values or empty sequence if Trailer is not present

def trailerOption: Option[Seq[String]]

Gets Trailer header values if present.

Gets Trailer header values if present.

Attributes

Creates new message with Trailer header removed.

Creates new message with Trailer header removed.

Attributes