Packages

t

sttp.client3.playJson

SttpPlayJsonApi

trait SttpPlayJsonApi extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SttpPlayJsonApi
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def asJson[B](implicit arg0: Reads[B], arg1: IsOption[B]): ResponseAs[Either[ResponseException[String, JsError], B], Any]

    If the response is successful (2xx), tries to deserialize the body from a string into JSON.

    If the response is successful (2xx), tries to deserialize the body from a string into JSON. Returns:

    • Right(b) if the parsing was successful
    • Left(HttpError(String)) if the response code was other than 2xx (deserialization is not attempted)
    • Left(DeserializationException) if there's an error during deserialization
  6. def asJsonAlways[B](implicit arg0: Reads[B], arg1: IsOption[B]): ResponseAs[Either[DeserializationException[JsError], B], Any]

    Tries to deserialize the body from a string into JSON, regardless of the response code.

    Tries to deserialize the body from a string into JSON, regardless of the response code. Returns:

    • Right(b) if the parsing was successful
    • Left(DeserializationException) if there's an error during deserialization
  7. def asJsonEither[E, B](implicit arg0: Reads[E], arg1: IsOption[E], arg2: Reads[B], arg3: IsOption[B]): ResponseAs[Either[ResponseException[E, JsError], B], Any]

    Tries to deserialize the body from a string into JSON, using different deserializers depending on the status code.

    Tries to deserialize the body from a string into JSON, using different deserializers depending on the status code. Returns:

    • Right(B) if the response was 2xx and parsing was successful
    • Left(HttpError(E)) if the response was other than 2xx and parsing was successful
    • Left(DeserializationException) if there's an error during deserialization
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. def deserializeJson[B](implicit arg0: Reads[B], arg1: IsOption[B]): (String) => Either[JsError, B]
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. implicit val errorMessageForPlayError: ShowError[JsError]
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. implicit def playJsonBodySerializer[B](implicit arg0: Writes[B]): BodySerializer[B]
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped