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
Ordering
- Alphabetic
- By Inheritance
Inherited
- EitherBackend
- SttpBackend
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
EitherBackend(delegate: SttpBackend[Identity, P])
- delegate
A synchronous
SttpBackend
which to which this backend forwards all requests
Value Members
-
def
close(): Either[Throwable, Unit]
- Definition Classes
- EitherBackend → SttpBackend
-
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
- EitherBackend → SttpBackend
-
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
- EitherBackend → SttpBackend