Packages

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.

Source
JavaNetClientBuilder.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JavaNetClientBuilder
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. val blockingExecutionContext: ExecutionContext
  2. val connectTimeout: Duration
  3. 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.

  4. val hostnameVerifier: Option[HostnameVerifier]
  5. val proxy: Option[Proxy]
  6. val readTimeout: Duration
  7. 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.

  8. val sslSocketFactory: Option[SSLSocketFactory]
  9. 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.

  10. def withBlockingExecutionContext(blockingExecutionContext: ExecutionContext): JavaNetClientBuilder
  11. def withConnectTimeout(connectTimeout: Duration): JavaNetClientBuilder
  12. def withHostnameVerifier(hostnameVerifier: HostnameVerifier): JavaNetClientBuilder
  13. def withHostnameVerifierOption(hostnameVerifier: Option[HostnameVerifier]): JavaNetClientBuilder
  14. def withProxy(proxy: Proxy): JavaNetClientBuilder
  15. def withProxyOption(proxy: Option[Proxy]): JavaNetClientBuilder
  16. def withReadTimeout(readTimeout: Duration): JavaNetClientBuilder
  17. def withSslSocketFactory(sslSocketFactory: SSLSocketFactory): JavaNetClientBuilder
  18. def withSslSocketFactoryOption(sslSocketFactory: Option[SSLSocketFactory]): JavaNetClientBuilder
  19. def withoutHostnameVerifier: JavaNetClientBuilder
  20. def withoutProxy: JavaNetClientBuilder
  21. def withoutSslSocketFactory: JavaNetClientBuilder