HttpClientSession

org.http4s.blaze.http.HttpClientSession
See theHttpClientSession companion object
sealed trait HttpClientSession

Representation of a concrete HTTP session

The HttpClientSession represents a true HTTP client session, either HTTP/1.x or HTTP/2.

Attributes

Companion
object
Source
HttpClientSession.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

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 within parameter. The returned Future[Unit] will resolve when all resources have been freed from the client.

Attributes

Note

This will generally entail closing the socket connection.

Source
HttpClientSession.scala

Dispatch a HttpRequest

Dispatch a HttpRequest

The resultant ReleaseableResponse contains a

Attributes

Source
HttpClientSession.scala
def status: Status

Get the Status of session

Get the Status of session

Attributes

Source
HttpClientSession.scala

Concrete methods

final def closeNow(): Future[Unit]

Close the session immediately, regardless of any pending dispatches

Close the session immediately, regardless of any pending dispatches

Attributes

Source
HttpClientSession.scala
final def isClosed: Boolean

Return whether the client session is in the Closed state

Return whether the client session is in the Closed state

Attributes

Source
HttpClientSession.scala
final def isReady: Boolean

Return whether the client session is in the Ready state

Return whether the client session is in the Ready state

Attributes

Source
HttpClientSession.scala