sealed abstract class JavaNetClientBuilder[F[_]] extends BackendBuilder[F, Client[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.
- Alphabetic
- By Inheritance
- JavaNetClientBuilder
- BackendBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
implicit
val
F: Async[F]
- Attributes
- protected
- Definition Classes
- JavaNetClientBuilder → BackendBuilder
-
def
allocated: F[(Client[F], F[Unit])]
Returns an effect that allocates a backend and an
F[Unit]
to release it.Returns an effect that allocates a backend and an
F[Unit]
to release it. The returnedF
waits until the backend is ready to process requests. The second element of the tuple shuts down the backend when run.Unlike resource and stream, there is no automatic release of the backend. This function is intended for REPL sessions, tests, and other situations where composing a cats.effect.Resource or fs2.Stream is not tenable. resource or stream is recommended wherever possible.
- Definition Classes
- BackendBuilder
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val blocker: Blocker
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val connectTimeout: Duration
-
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.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val hostnameVerifier: Option[HostnameVerifier]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
- val proxy: Option[Proxy]
- val readTimeout: Duration
-
def
resource: Resource[F, Client[F]]
Returns the backend as a resource.
Returns the backend as a resource. Resource acquire waits until the backend is ready to process requests.
- Definition Classes
- JavaNetClientBuilder → BackendBuilder
- val sslSocketFactory: Option[SSLSocketFactory]
-
def
stream: Stream[F, Client[F]]
Returns the backend as a single-element stream.
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.
- Definition Classes
- BackendBuilder
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withBlocker(blocker: Blocker): JavaNetClientBuilder[F]
- def withConnectTimeout(connectTimeout: Duration): JavaNetClientBuilder[F]
- def withHostnameVerifier(hostnameVerifier: HostnameVerifier): JavaNetClientBuilder[F]
- def withHostnameVerifierOption(hostnameVerifier: Option[HostnameVerifier]): JavaNetClientBuilder[F]
- def withProxy(proxy: Proxy): JavaNetClientBuilder[F]
- def withProxyOption(proxy: Option[Proxy]): JavaNetClientBuilder[F]
- def withReadTimeout(readTimeout: Duration): JavaNetClientBuilder[F]
- def withSslSocketFactory(sslSocketFactory: SSLSocketFactory): JavaNetClientBuilder[F]
- def withSslSocketFactoryOption(sslSocketFactory: Option[SSLSocketFactory]): JavaNetClientBuilder[F]
- def withoutHostnameVerifier: JavaNetClientBuilder[F]
- def withoutProxy: JavaNetClientBuilder[F]
- def withoutSslSocketFactory: JavaNetClientBuilder[F]
Deprecated Value Members
-
def
withBlockingExecutionContext(blockingExecutionContext: ExecutionContext): JavaNetClientBuilder[F]
- Annotations
- @deprecated
- Deprecated
(Since version 0.21.0) Use withBlocker instead