object ZClient extends ZClientPlatformSpecific with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZClient
  2. Serializable
  3. ZClientPlatformSpecific
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait BodyDecoder[-Env, +Err, +Out] extends AnyRef
  2. trait BodyEncoder[-Env, +Err, -In] extends AnyRef
  3. final case class Config(ssl: Option[ClientSSLConfig], proxy: Option[Proxy], connectionPool: ConnectionPoolConfig, maxInitialLineLength: Int, maxHeaderSize: Int, requestDecompression: Decompression, localAddress: Option[InetSocketAddress], addUserAgentHeader: Boolean, webSocketConfig: WebSocketConfig, idleTimeout: Option[zio.Duration], connectionTimeout: Option[zio.Duration]) extends Product with Serializable
  4. trait Driver[-Env, ReqEnv, +Err] extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def batched(request: Request)(implicit trace: Trace): ZIO[Client, Throwable, Response]

    Executes an HTTP request and extracts the response

    Executes an HTTP request and extracts the response

    NOTE: This method materializes the full response into memory. If the response is streaming, it will await for it to be fully collected before resuming.

    See also

    streaming for a variant that doesn't materialize the response body in memory, allowing to stream response bodies

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. def configured(path: NonEmptyChunk[String] = NonEmptyChunk("zio", "http", "client"))(implicit trace: Trace): ZLayer[DnsResolver, Throwable, Client]
    Definition Classes
    ZClientPlatformSpecific
  8. lazy val customized: ZLayer[Config with ClientDriver with DnsResolver, Throwable, Client]
    Definition Classes
    ZClientPlatformSpecific
  9. lazy val default: ZLayer[Any, Throwable, Client]
    Definition Classes
    ZClientPlatformSpecific
  10. lazy val defaultUAHeader: UserAgent
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def fromDriver[Env, ReqEnv, Err](driver: Driver[Env, ReqEnv, Err]): ZClient[Env, ReqEnv, Body, Err, Response]
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. lazy val live: ZLayer[Config with NettyConfig with DnsResolver, Throwable, Client]
    Definition Classes
    ZClientPlatformSpecific
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  21. def socket[R](socketApp: WebSocketApp[R])(implicit trace: Trace): ZIO[zio.&[R with Client, Scope], Throwable, Response]
  22. def streaming(request: Request)(implicit trace: Trace): ZIO[zio.&[Client, Scope], Throwable, Response]

    Executes an HTTP request and extracts the response.

    Executes an HTTP request and extracts the response.

    It is the responsibility of the user to ensure that the resources associated with the request are properly finalized via the returned Scope.

    NOTE: The Scope must be closed after the body has been collected.

    See also

    batched for a variant that doesn't require manual handling of the request's resources (i.e., Scope)

  23. def streamingWith[R, A](request: Request)(f: (Response) => ZStream[R, Throwable, A])(implicit trace: Trace): ZStream[zio.&[R, Client], Throwable, A]

    Executes an HTTP request, and transforms the response to a ZStream using the provided function.

    Executes an HTTP request, and transforms the response to a ZStream using the provided function. The resources associated with this request will be automatically cleaned up when the ZStream terminates.

    This method does not materialize the response body in memory, so it will resume as soon as the response is received, and it is safe to use with large response bodies

  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. object BodyDecoder
  30. object BodyEncoder
  31. object Config extends Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  2. def request(request: Request)(implicit trace: Trace): ZIO[zio.&[Client, Scope], Throwable, Response]
    Annotations
    @deprecated
    Deprecated

    (Since version 3.0.0) Use batched or streaming instead

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped