LastModified

final implicit
class LastModified(response: HttpResponse) extends AnyVal

Provides standardized access to Last-Modified header.

class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def getLastModified: Option[Instant]

Gets Last-Modified header value if present.

Gets Last-Modified header value if present.

def hasLastModified: Boolean

Tests for Last-Modified header.

Tests for Last-Modified header.

def lastModified: Instant

Gets Last-Modified header value.

Gets Last-Modified header value.

Throws
HeaderNotFound

if Last-Modified is not present

Creates new response with Last-Modified header removed.

Creates new response with Last-Modified header removed.

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.