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
- Protected
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 whether Keep-Alive header is present.
- 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 toString(): String
- Definition Classes
- Any
- def withKeepAlive(value: KeepAliveParameters)(implicit ev: <:<[T, MessageBuilder[T]]): T
Creates new message setting Keep-Alive header to supplied value.