FetchZioBackend

sttp.client4.impl.zio.FetchZioBackend
See theFetchZioBackend companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(fetchOptions: FetchOptions, customizeRequest: Request => Request): WebSocketStreamBackend[Task, ZioStreams]
def layer(fetchOptions: FetchOptions, customizeRequest: Request => Request): ZLayer[Any, Throwable, SttpClient]
def scoped(fetchOptions: FetchOptions, customizeRequest: Request => Request): ZIO[Scope, Throwable, WebSocketStreamBackend[Task, ZioStreams]]
def stub: WebSocketStreamBackendStub[Task, ZioStreams]

Create a stub backend for testing, which uses the Task response wrapper, and supports Observable[ByteBuffer] streaming.

Create a stub backend for testing, which uses the Task response wrapper, and supports Observable[ByteBuffer] streaming.

See WebSocketStreamBackendStub for details on how to configure stub responses.

Attributes