package client
- Source
- package.scala
- Alphabetic
- By Inheritance
- client
- ClientTypes
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
final
case class
Client[F[_]](open: Kleisli[F, Request[F], DisposableResponse[F]], shutdown: F[Unit])(implicit F: MonadError[F, Throwable]) extends Product with Serializable
A Client submits Requests to a server and processes the Response.
- open
a service to asynchronously return a DisposableResponse from a Request. This is a low-level operation intended for client implementations and middleware.
- shutdown
an effect to shut down this Shutdown this client, closing any open connections and freeing resources
- trait Connection[F[_]] extends AnyRef
-
type
ConnectionBuilder[F[_], A <: Connection[F]] = (RequestKey) ⇒ F[A]
- Definition Classes
- ClientTypes
-
trait
ConnectionManager[F[_], A <: Connection[F]] extends AnyRef
Type that is responsible for the client lifecycle
Type that is responsible for the client lifecycle
The ConnectionManager is a general wrapper around a ConnectionBuilder that can pool resources in order to conserve resources such as socket connections, CPU time, SSL handshakes, etc. Because it can contain significant resources it must have a mechanism to free resources associated with it.
-
final
case class
DisposableResponse[F[_]](response: Response[F], dispose: F[Unit]) extends Product with Serializable
Contains a Response that needs to be disposed of to free the underlying HTTP connection.
-
sealed abstract
class
JavaNetClient extends AnyRef
A Client based on
java.net.HttpUrlConnection
.A Client based on
java.net.HttpUrlConnection
.JavaNetClient
adds no dependencies beyondhttp4s-client
. This client is generally not production grade, but convenient for exploration in a REPL.All I/O operations in this client are blocking.
-
type
Middleware[F[_]] = (Client[F]) ⇒ Client[F]
- Definition Classes
- ClientTypes
- case class NoConnectionAllowedException(key: RequestKey) extends IllegalArgumentException with Product with Serializable
-
final
case class
RequestKey(scheme: Scheme, authority: Authority) extends Product with Serializable
Represents a key for requests that can conceivably share a Connection.
- final case class UnexpectedStatus(status: Status) extends RuntimeException with NoStackTrace with Product with Serializable
- final case class WaitQueueFullFailure() extends RuntimeException with Product with Serializable
Value Members
- object Client extends Serializable
- object ConnectionManager
- object JavaNetClient
- object RequestKey extends Serializable