Vary

scamper.http.headers.Vary
final class Vary(response: HttpResponse) extends AnyVal

Adds standardized access to Vary header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def hasVary: Boolean

Tests for Vary header.

Tests for Vary header.

Attributes

def setVary(values: Seq[String]): HttpResponse

Creates new response with Vary header set to supplied values.

Creates new response with Vary header set to supplied values.

Attributes

def setVary(one: String, more: String*): HttpResponse

Creates new response with Vary header set to supplied values.

Creates new response with Vary header set to supplied values.

Attributes

def vary: Seq[String]

Gets Vary header values.

Gets Vary header values.

Attributes

Returns

header values or empty sequence if Vary is not present

def varyOption: Option[Seq[String]]

Gets Vary header values if present.

Gets Vary header values if present.

Attributes

Creates new response with Vary header removed.

Creates new response with Vary header removed.

Attributes