zio.http.endpoint.cli.CliClient.scala Maven / Gradle / Ivy
The newest version!
package zio.http.endpoint.cli
import zio._
import zio.http._
/**
* CliClient is a wrapper for the Http Client of a HttpCliApp. It allows to
* provide a Client in different ways. DefaultClient provides the ZLayer
* Client.default.
*/
private[cli] sealed trait CliClient
private[cli] final case class CliZIOClient(client: Client) extends CliClient
private[cli] final case class CliZLayerClient(client: ZLayer[Any, Throwable, Client]) extends CliClient
private[cli] final case class DefaultClient() extends CliClient