sealed trait Response[+U] extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Response
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def body: Option[String]

    Returns the body included in the HTTP response or None if this response did not include a body.

  2. abstract def error: ElasticError

    Returns error details as an instance of ElasticError if this is RequestFailure.

    Returns error details as an instance of ElasticError if this is RequestFailure. Otherwise throws an exception.

  3. abstract def flatMap[V](f: (U) ⇒ Response[V]): Response[V]
  4. abstract def headers: Map[String, String]

    Returns any HTTP headers that were included in the response.

  5. abstract def isError: Boolean

    Returns true if this response is an error state.

  6. abstract def map[V](f: (U) ⇒ V): Response[V]
  7. abstract def result: U

    Returns the marshalled response U if this is an instance of RequestSuccess, otherwise throws an exception.

  8. abstract def status: Int

    Returns the http status code of the response.

Concrete 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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def fold[V](onError: (RequestFailure) ⇒ V, onSuccess: (U) ⇒ V): V
  9. final def fold[V](ifError: ⇒ V)(f: (U) ⇒ V): V
  10. final def foreach[V](f: (U) ⇒ V): Unit
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def isSuccess: Boolean

    Returns true if this response was successful

  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. final def toEither: Either[ElasticError, U]
  20. final def toOption: Option[U]
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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