sealed abstract class JavaNetClientBuilder extends AnyRef
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
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
- val blockingExecutionContext: ExecutionContext
- val connectTimeout: Duration
-
def
create[F[_]](implicit F: Async[F], cs: ContextShift[F]): 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.
- val hostnameVerifier: Option[HostnameVerifier]
- val proxy: Option[Proxy]
- val readTimeout: Duration
-
def
resource[F[_]](implicit F: Async[F], cs: ContextShift[F]): Resource[F, Client[F]]
Creates a Client resource.
Creates a Client resource.
The release of this resource 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.
- val sslSocketFactory: Option[SSLSocketFactory]
-
def
stream[F[_]](implicit F: Async[F], cs: ContextShift[F]): Stream[F, Client[F]]
Creates a Client stream.
Creates a Client stream.
The bracketed release on this stream 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.
- def withBlockingExecutionContext(blockingExecutionContext: ExecutionContext): JavaNetClientBuilder
- def withConnectTimeout(connectTimeout: Duration): JavaNetClientBuilder
- def withHostnameVerifier(hostnameVerifier: HostnameVerifier): JavaNetClientBuilder
- def withHostnameVerifierOption(hostnameVerifier: Option[HostnameVerifier]): JavaNetClientBuilder
- def withProxy(proxy: Proxy): JavaNetClientBuilder
- def withProxyOption(proxy: Option[Proxy]): JavaNetClientBuilder
- def withReadTimeout(readTimeout: Duration): JavaNetClientBuilder
- def withSslSocketFactory(sslSocketFactory: SSLSocketFactory): JavaNetClientBuilder
- def withSslSocketFactoryOption(sslSocketFactory: Option[SSLSocketFactory]): JavaNetClientBuilder
- def withoutHostnameVerifier: JavaNetClientBuilder
- def withoutProxy: JavaNetClientBuilder
- def withoutSslSocketFactory: JavaNetClientBuilder