Packages

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.

Source
JavaNetClientBuilder.scala
Linear Supertypes
BackendBuilder[F, Client[F]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JavaNetClientBuilder
  2. BackendBuilder
  3. AnyRef
  4. 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. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from JavaNetClientBuilder[F] to any2stringadd[JavaNetClientBuilder[F]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (JavaNetClientBuilder[F], B)
    Implicit
    This member is added by an implicit conversion from JavaNetClientBuilder[F] to ArrowAssoc[JavaNetClientBuilder[F]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. implicit val F: Async[F]
    Attributes
    protected
    Definition Classes
    JavaNetClientBuilder → BackendBuilder
  7. 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 returned F 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
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. val blockingExecutionContext: ExecutionContext
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  11. val connectTimeout: Duration
  12. 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.

  13. def ensuring(cond: (JavaNetClientBuilder[F]) ⇒ Boolean, msg: ⇒ Any): JavaNetClientBuilder[F]
    Implicit
    This member is added by an implicit conversion from JavaNetClientBuilder[F] to Ensuring[JavaNetClientBuilder[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (JavaNetClientBuilder[F]) ⇒ Boolean): JavaNetClientBuilder[F]
    Implicit
    This member is added by an implicit conversion from JavaNetClientBuilder[F] to Ensuring[JavaNetClientBuilder[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): JavaNetClientBuilder[F]
    Implicit
    This member is added by an implicit conversion from JavaNetClientBuilder[F] to Ensuring[JavaNetClientBuilder[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): JavaNetClientBuilder[F]
    Implicit
    This member is added by an implicit conversion from JavaNetClientBuilder[F] to Ensuring[JavaNetClientBuilder[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from JavaNetClientBuilder[F] to StringFormat[JavaNetClientBuilder[F]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. val hostnameVerifier: Option[HostnameVerifier]
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. val proxy: Option[Proxy]
  29. val readTimeout: Duration
  30. 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
  31. val sslSocketFactory: Option[SSLSocketFactory]
  32. 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
  33. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  38. def withBlockingExecutionContext(blockingExecutionContext: ExecutionContext): JavaNetClientBuilder[F]
  39. def withConnectTimeout(connectTimeout: Duration): JavaNetClientBuilder[F]
  40. def withHostnameVerifier(hostnameVerifier: HostnameVerifier): JavaNetClientBuilder[F]
  41. def withHostnameVerifierOption(hostnameVerifier: Option[HostnameVerifier]): JavaNetClientBuilder[F]
  42. def withProxy(proxy: Proxy): JavaNetClientBuilder[F]
  43. def withProxyOption(proxy: Option[Proxy]): JavaNetClientBuilder[F]
  44. def withReadTimeout(readTimeout: Duration): JavaNetClientBuilder[F]
  45. def withSslSocketFactory(sslSocketFactory: SSLSocketFactory): JavaNetClientBuilder[F]
  46. def withSslSocketFactoryOption(sslSocketFactory: Option[SSLSocketFactory]): JavaNetClientBuilder[F]
  47. def withoutHostnameVerifier: JavaNetClientBuilder[F]
  48. def withoutProxy: JavaNetClientBuilder[F]
  49. def withoutSslSocketFactory: JavaNetClientBuilder[F]
  50. def [B](y: B): (JavaNetClientBuilder[F], B)
    Implicit
    This member is added by an implicit conversion from JavaNetClientBuilder[F] to ArrowAssoc[JavaNetClientBuilder[F]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from BackendBuilder[F, Client[F]]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from JavaNetClientBuilder[F] to any2stringadd[JavaNetClientBuilder[F]]

Inherited by implicit conversion StringFormat from JavaNetClientBuilder[F] to StringFormat[JavaNetClientBuilder[F]]

Inherited by implicit conversion Ensuring from JavaNetClientBuilder[F] to Ensuring[JavaNetClientBuilder[F]]

Inherited by implicit conversion ArrowAssoc from JavaNetClientBuilder[F] to ArrowAssoc[JavaNetClientBuilder[F]]

Ungrouped