Skip to content

Commit

Permalink
Merge pull request #1532 from vectos/fix-dx
Browse files Browse the repository at this point in the history
DX: fix some issues
  • Loading branch information
adamw authored Aug 26, 2022
2 parents cc54908 + b478576 commit 44dc113
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package sttp.client3.httpclient

import sttp.capabilities.WebSockets
import sttp.capabilities.zio.ZioStreams
import sttp.client3.SttpBackend

package object zio {
type SttpClient = SttpBackend[_root_.zio.Task, ZioStreams with WebSockets]
}
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ object HttpClientZioBackend {
*
* See [[SttpBackendStub]] for details on how to configure stub responses.
*/
def stub: SttpBackendStub[Task, ZioStreams] =
def stub: SttpBackendStub[Task, ZioStreams with WebSockets] =
SttpBackendStub(new RIOMonadAsyncError[Any])

val stubLayer: ZLayer[Any, Nothing, SttpClientStubbing with SttpClient] = SttpClientStubbing.layer
Expand Down

0 comments on commit 44dc113

Please sign in to comment.