c

sttp.client3

EitherBackend

class EitherBackend[P] extends SttpBackend[[β$0$]Either[Throwable, β$0$], P]

A synchronous backend that safely wraps SttpBackend exceptions in Either[Throwable, *]'s

P

TODO

Linear Supertypes
SttpBackend[[β$0$]Either[Throwable, β$0$], P], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EitherBackend
  2. SttpBackend
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EitherBackend(delegate: SttpBackend[Identity, P])

    delegate

    A synchronous SttpBackend which to which this backend forwards all requests

Value Members

  1. def close(): Either[Throwable, Unit]
    Definition Classes
    EitherBackendSttpBackend
  2. def responseMonad: MonadError[[β$4$]Either[Throwable, β$4$]]

    A monad instance for the effect type used when returning responses.

    A monad instance for the effect type used when returning responses. Allows writing wrapper backends, which map/flatMap over the return value of send.

    Definition Classes
    EitherBackendSttpBackend
  3. def send[T, R >: P with Effect[[β$1$]Either[Throwable, β$1$]]](request: Request[T, R]): Either[Throwable, Response[T]]

    R

    The capabilities required by the request. This must be a subset of the the capabilities supported by the backend (which always includes Effect[F]).

    Definition Classes
    EitherBackendSttpBackend