sealed trait HttpClientSession extends AnyRef
Representation of a concrete HTTP session
The HttpClientSession represents a true HTTP client session, either HTTP/1.x or HTTP/2.
- Source
- HttpClientSession.scala
- Alphabetic
- By Inheritance
- 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.- 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 - abstract def status: Status
Get the
Statusof session
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
- 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
Closedstate - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def isReady: Boolean
Return whether the client session is in the
Readystate - 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()