LastModified

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

Adds standardized access to Last-Modified header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def hasLastModified: Boolean

Tests for Last-Modified header.

Tests for Last-Modified header.

Attributes

def lastModified: Instant

Gets Last-Modified header value.

Gets Last-Modified header value.

Attributes

Throws
HeaderNotFound

if Last-Modified is not present

def lastModifiedOption: Option[Instant]

Gets Last-Modified header value if present.

Gets Last-Modified header value if present.

Attributes

Creates new response with Last-Modified header removed.

Creates new response with Last-Modified header removed.

Attributes

def setLastModified(value: Instant): HttpResponse

Creates new response with Last-Modified header set to supplied value.

Creates new response with Last-Modified header set to supplied value.

Attributes