If the type to which the response body should be deserialized is an Either[A, B]
:
If the type to which the response body should be deserialized is an Either[A, B]
:
A
, throws as an exception / returns a failed effect (wrapped with an HttpError if A
is
not yet an exception)B
, returns the value directly
(Since version ) see corresponding Javadoc for more information.