BodyFromResponseAs

abstract class BodyFromResponseAs[F[_], RegularResponse, WSResponse, Stream](m: MonadError[F])
class Object
trait Matchable
class Any

Value members

Abstract methods

protected def cleanupWhenGotWebSocket(response: WSResponse, e: GotAWebSocketException): F[Unit]
protected def cleanupWhenNotAWebSocket(response: RegularResponse, e: NotAWebSocketException): F[Unit]
protected def handleWS[T](responseAs: WebSocketResponseAs[T, _], meta: ResponseMetadata, ws: WSResponse): F[T]
protected def regularAsByteArray(response: RegularResponse): F[Array[Byte]]
protected def regularAsFile(response: RegularResponse, file: SttpFile): F[SttpFile]
protected def regularAsStream(response: RegularResponse): F[(Stream, () => F[Unit])]
protected def regularIgnore(response: RegularResponse): F[Unit]
protected def withReplayableBody(response: RegularResponse, replayableBody: Either[Array[Byte], SttpFile]): F[RegularResponse]

Concrete methods

def apply[T](responseAs: ResponseAs[T, _], meta: ResponseMetadata, response: Either[RegularResponse, WSResponse]): F[T]