object OkHttpMonixBackend
- Companion:
- class
Value members
Concrete methods
def apply(options: SttpBackendOptions, customEncodingHandler: EncodingHandler, webSocketBufferCapacity: Option[Int])(implicit s: Scheduler): Task[SttpBackend[Task, MonixStreams & WebSockets]]
def resource(options: SttpBackendOptions, customEncodingHandler: EncodingHandler, webSocketBufferCapacity: Option[Int])(implicit s: Scheduler): Resource[Task, SttpBackend[Task, MonixStreams & WebSockets]]
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 SttpBackendStub for details on how to configure stub responses.
def usingClient(client: OkHttpClient, customEncodingHandler: EncodingHandler, webSocketBufferCapacity: Option[Int])(implicit s: Scheduler): SttpBackend[Task, MonixStreams & WebSockets]