RichResponseAsEitherResponseException

sttp.client3.ResponseAs.RichResponseAsEitherResponseException
implicit class RichResponseAsEitherResponseException[HE, DE, B, R](ra: ResponseAs[Either[ResponseException[HE, DE], B], R])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def getEither: ResponseAs[Either[HE, B], R]

If the type to which the response body should be deserialized is an Either[ResponseException[HE, DE], B], either throws the DeserializationException, returns the deserialized body from the HttpError, or the deserialized successful body B.

If the type to which the response body should be deserialized is an Either[ResponseException[HE, DE], B], either throws the DeserializationException, returns the deserialized body from the HttpError, or the deserialized successful body B.

Attributes