org.http4s.client

Type members

Classlikes

trait Client[F[_]]

A Client submits Requests to a server and processes the Response.

A Client submits Requests to a server and processes the Response.

When a connection is "released" and the HTTP semantics of the request and response permit, the connection may be kept alive by the backend and used for a subsequent request. When HTTP semantics require it, or at the backend's discretion, a released connection may also be closed.

Companion:
object
Source:
Client.scala
object Client
Companion:
class
Source:
Client.scala
class ConnectionFailure(val requestKey: RequestKey, val upstream: InetSocketAddress, val cause: Throwable) extends IOException

Indicates a failure to establish a client connection, preserving the request key that we tried to connect to.

Indicates a failure to establish a client connection, preserving the request key that we tried to connect to.

Companion:
object
Source:
ConnectionFailure.scala
sealed abstract class JavaNetClientBuilder[F[_]]

Builder for a Client backed by on java.net.HttpUrlConnection.

Builder for a Client backed by on java.net.HttpUrlConnection.

The java.net client adds no dependencies beyond http4s-client. This client is generally not production grade, but convenient for exploration in a REPL.

All I/O operations in this client are blocking.

Companion:
object
Source:
JavaNetClientBuilder.scala

Builder for a Client backed by on java.net.HttpUrlConnection.

Builder for a Client backed by on java.net.HttpUrlConnection.

Companion:
class
Source:
JavaNetClientBuilder.scala
final case class RequestKey(scheme: Scheme, authority: Authority)

Represents a key for requests that can conceivably share a connection.

Represents a key for requests that can conceivably share a connection.

Companion:
object
Source:
RequestKey.scala
object RequestKey
Companion:
class
Source:
RequestKey.scala
final case class UnexpectedStatus(status: Status, requestMethod: Method, requestUri: Uri) extends RuntimeException with NoStackTrace
object defaults

Inherited types

type Middleware[F[_]] = Client[F] => Client[F]
Inherited from:
ClientTypes
Source:
package.scala