ResponseAs

object ResponseAs
Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

class RichResponseAsEither[A, B, R](ra: ResponseAs[Either[A, B], R])
class RichResponseAsEitherResponseException[HE, DE, B, R](ra: ResponseAs[Either[ResponseException[HE, DE], B], R])

Value members

Concrete methods

def deserializeCatchingExceptions[T](doDeserialize: String => T): String => Either[DeserializationException[Exception], T]

Returns a function, which attempts to deserialize Right values using the given function, catching any exceptions and representing them as DeserializationExceptions.

Returns a function, which attempts to deserialize Right values using the given function, catching any exceptions and representing them as DeserializationExceptions.

def deserializeOrThrow[E, T](doDeserialize: String => Either[E, T])(`evidence$5`: ShowError[E]): String => T

Converts a deserialization function, which returns errors of type E, into a function where errors are thrown as exceptions, and results are returned unwrapped.

Converts a deserialization function, which returns errors of type E, into a function where errors are thrown as exceptions, and results are returned unwrapped.

def deserializeRightCatchingExceptions[T](doDeserialize: String => T): (Either[String, String], ResponseMetadata) => Either[ResponseException[String, Exception], T]

Returns a function, which maps Left values to HttpErrors, and attempts to deserialize Right values using the given function, catching any exceptions and representing them as DeserializationExceptions.

Returns a function, which maps Left values to HttpErrors, and attempts to deserialize Right values using the given function, catching any exceptions and representing them as DeserializationExceptions.

def deserializeRightOrThrow[E, T](doDeserialize: String => Either[E, T])(`evidence$3`: ShowError[E]): Either[String, String] => Either[String, T]

Returns a function, which keeps Left unchanged, and attempts to deserialize Right values using the given function. If deserialization fails, an exception is thrown

Returns a function, which keeps Left unchanged, and attempts to deserialize Right values using the given function. If deserialization fails, an exception is thrown

def deserializeRightWithError[E, T](doDeserialize: String => Either[E, T])(`evidence$2`: ShowError[E]): (Either[String, String], ResponseMetadata) => Either[ResponseException[String, E], T]

Returns a function, which maps Left values to HttpErrors, and attempts to deserialize Right values using the given function.

Returns a function, which maps Left values to HttpErrors, and attempts to deserialize Right values using the given function.

def deserializeWithError[E, T](doDeserialize: String => Either[E, T])(`evidence$4`: ShowError[E]): String => Either[DeserializationException[E], T]

Converts a deserialization function, which returns errors of type E, into a function where errors are wrapped using DeserializationException.

Converts a deserialization function, which returns errors of type E, into a function where errors are wrapped using DeserializationException.

def isWebSocket[T, R](ra: ResponseAs[_, _]): Boolean