JavaNetClientBuilder

org.http4s.client.JavaNetClientBuilder
See theJavaNetClientBuilder companion object
sealed abstract class JavaNetClientBuilder[F[_]]

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.

Attributes

Companion:
object
Source:
JavaNetClientBuilder.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def create: Client[F]

Creates a Client.

Creates a Client.

The shutdown of this client is a no-op. Creation of the client allocates no resources, and any resources allocated while using this client are reclaimed by the JVM at its own leisure.

Attributes

Source:
JavaNetClientBuilder.scala

Returns the backend as a resource. Resource acquire waits until the backend is ready to process requests.

Returns the backend as a resource. Resource acquire waits until the backend is ready to process requests.

Attributes

Source:
JavaNetClientBuilder.scala

Inherited methods

def stream: Stream[F, A]

Returns the backend as a single-element stream. The stream does not emit until the backend is ready to process requests. The backend is shut down when the stream is finalized.

Returns the backend as a single-element stream. The stream does not emit until the backend is ready to process requests. The backend is shut down when the stream is finalized.

Attributes

Inherited from:
BackendBuilder (hidden)
Source:
BackendBuilder.scala