implicit final class KeepAlive[T <: HttpMessage] extends AnyVal
Provides standardized access to Keep-Alive header.
- Alphabetic
- By Inheritance
- KeepAlive
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new KeepAlive(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
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
getKeepAlive: Option[KeepAliveParameters]
Gets Keep-Alive header value if present.
-
def
hasKeepAlive: Boolean
Tests for Keep-Alive header.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
keepAlive: KeepAliveParameters
Gets Keep-Alive header value.
Gets Keep-Alive header value.
- Exceptions thrown
HeaderNotFound
if Keep-Alive is not present
-
def
removeKeepAlive(implicit ev: <:<[T, MessageBuilder[T]]): T
Creates new message removing Keep-Alive header.
-
def
setKeepAlive(value: KeepAliveParameters)(implicit ev: <:<[T, MessageBuilder[T]]): T
Creates new message setting Keep-Alive header to supplied value.
-
def
toString(): String
- Definition Classes
- Any
Provided herein is API documentation for Scamper, the HTTP library for Scala.