diff --git a/httpclient-backend/zio/src/main/scala/sttp/client/httpclient/zio/package.scala b/httpclient-backend/zio/src/main/scala/sttp/client/httpclient/zio/package.scala index f656e2c647..bb7946d7a0 100644 --- a/httpclient-backend/zio/src/main/scala/sttp/client/httpclient/zio/package.scala +++ b/httpclient-backend/zio/src/main/scala/sttp/client/httpclient/zio/package.scala @@ -13,9 +13,11 @@ package object zio { /** * ZIO-environment service definition, which is an SttpBackend. */ - type SttpClient = Has[SttpBackend[BlockingTask, ZStream[Blocking, Throwable, Byte], WebSocketHandler]] + type SttpClient = Has[SttpClient.Service] object SttpClient { + + type Service = SttpBackend[BlockingTask, ZStream[Blocking, Throwable, Byte], WebSocketHandler] /** * Sends the request. Only requests for which the method & URI are specified can be sent.