Skip to content

Commit

Permalink
Merge pull request #661 from kitlangton/patch-1
Browse files Browse the repository at this point in the history
Add a ZIO-style Service type for idiomaticity points
  • Loading branch information
adamw authored Aug 20, 2020
2 parents b46d642 + 530aa0e commit 31f54d5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 31f54d5

Please sign in to comment.