object ResponseAs
- Alphabetic
- By Inheritance
- ResponseAs
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- implicit class RichResponseAsEither[A, B, R] extends AnyRef
- implicit class RichResponseAsEitherResponseException[HE, DE, B, R] extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
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 DeserializationException s. -
def
deserializeOrThrow[E, T](doDeserialize: (String) ⇒ Either[E, T])(implicit arg0: 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. -
def
deserializeRightCatchingExceptions[T](doDeserialize: (String) ⇒ T): (Either[String, String], ResponseMetadata) ⇒ Either[ResponseException[String, Exception], T]
Returns a function, which maps
Left
values to HttpError s, and attempts to deserializeRight
values using the given function, catching any exceptions and representing them as DeserializationException s. -
def
deserializeRightOrThrow[E, T](doDeserialize: (String) ⇒ Either[E, T])(implicit arg0: ShowError[E]): (Either[String, String]) ⇒ Either[String, T]
Returns a function, which keeps
Left
unchanged, and attempts to deserializeRight
values using the given function.Returns a function, which keeps
Left
unchanged, and attempts to deserializeRight
values using the given function. If deserialization fails, an exception is thrown -
def
deserializeRightWithError[E, T](doDeserialize: (String) ⇒ Either[E, T])(implicit arg0: ShowError[E]): (Either[String, String], ResponseMetadata) ⇒ Either[ResponseException[String, E], T]
Returns a function, which maps
Left
values to HttpError s, and attempts to deserializeRight
values using the given function. -
def
deserializeWithError[E, T](doDeserialize: (String) ⇒ Either[E, T])(implicit arg0: 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. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isWebSocket[T, R](ra: ResponseAs[_, _]): Boolean
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated