Age

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

Adds standardized access to Age header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def age: Long

Gets Age header value.

Gets Age header value.

Attributes

Throws
HeaderNotFound

if Age is not present

def ageOption: Option[Long]

Gets Age header value if present.

Gets Age header value if present.

Attributes

Creates new response with Age header removed.

Creates new response with Age header removed.

Attributes

def hasAge: Boolean

Tests for Age header.

Tests for Age header.

Attributes

def setAge(value: Long): HttpResponse

Creates new response with Age header set to supplied value.

Creates new response with Age header set to supplied value.

Attributes