Vary

final implicit
class Vary(response: HttpResponse) extends AnyVal

Provides standardized access to Vary header.

class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def getVary: Option[Seq[String]]

Gets Vary header values if present.

Gets Vary header values if present.

def hasVary: Boolean

Tests for Vary header.

Tests for Vary header.

Creates new response removing Vary header.

Creates new response removing Vary header.

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

Creates new response setting Vary header to supplied values.

Creates new response setting Vary header to supplied values.

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

Creates new response setting Vary header to supplied values.

Creates new response setting Vary header to supplied values.

def vary: Seq[String]

Gets Vary header values.

Gets Vary header values.

Returns

header values or empty sequence if Vary is not present