trait Http2ClientSession extends HttpClientSession
- Source
- HttpClientSession.scala
- Alphabetic
- By Inheritance
- Http2ClientSession
- HttpClientSession
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def close(within: Duration): Future[Unit]
Close the session within the specified duration.
Close the session within the specified duration.
The provided duration is only an advisory upper bound and the implementation may choose to close the session at any time before the expiration of the
withinparameter. The returnedFuture[Unit]will resolve when all resources have been freed from the client.- Definition Classes
- HttpClientSession
- Note
This will generally entail closing the socket connection.
- abstract def dispatch(request: HttpRequest): Future[ReleaseableResponse]
Dispatch a HttpRequest
Dispatch a HttpRequest
The resultant
ReleaseableResponsecontains a- Definition Classes
- HttpClientSession
- abstract def ping(): Future[Duration]
Ping the peer, asynchronously returning the duration of the round trip
- abstract def quality: Double
An estimate for the current quality of the session
An estimate for the current quality of the session
- returns
a number with domain [0, 1] signifying the health or quality of the session. The scale is intended to be linear.
- abstract def status: Status
Get the
Statusof sessionGet the
Statusof session- Definition Classes
- HttpClientSession
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def closeNow(): Future[Unit]
Close the session immediately, regardless of any pending dispatches
Close the session immediately, regardless of any pending dispatches
- Definition Classes
- HttpClientSession
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isClosed: Boolean
Return whether the client session is in the
ClosedstateReturn whether the client session is in the
Closedstate- Definition Classes
- HttpClientSession
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def isReady: Boolean
Return whether the client session is in the
ReadystateReturn whether the client session is in the
Readystate- Definition Classes
- HttpClientSession
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()