implicit final class Date[T <: HttpMessage] extends AnyVal
Provides standardized access to Date header.
- Alphabetic
- By Inheritance
- Date
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Date(message: T)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
date: Instant
Gets Date header value.
Gets Date header value.
- Exceptions thrown
HeaderNotFound
if Date is not present
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
getDate: Option[Instant]
Gets Date header value if present.
-
def
hasDate: Boolean
Tests for Date header.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
removeDate(implicit ev: <:<[T, MessageBuilder[T]]): T
Creates new message removing Date header.
-
def
setDate(value: Instant)(implicit ev: <:<[T, MessageBuilder[T]]): T
Creates new message setting Date header to supplied value.
-
def
toString(): String
- Definition Classes
- Any
Provided herein is API documentation for Scamper, the HTTP library for Scala.