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 removing Last-Modified header.

Creates new response removing Last-Modified header.

def setLastModified(value: Instant): HttpResponse

Creates new response setting Last-Modified header to supplied value.

Creates new response setting Last-Modified header to supplied value.