com.mle.android.http

FutureHttpClient

trait FutureHttpClient extends UtilLog with Closeable

Linear Supertypes
Closeable, AutoCloseable, UtilLog, MleLog, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FutureHttpClient
  2. Closeable
  3. AutoCloseable
  4. UtilLog
  5. MleLog
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. def addHeaders(headers: (String, String)*): Unit

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def buildResponseHandler(promise: Promise[HttpResponse]): AsyncHttpResponseHandler

  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def close(): Unit

    Definition Classes
    FutureHttpClient → Closeable → AutoCloseable
  9. def debug(msg: ⇒ String): Unit

    Definition Classes
    MleLog
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def err(msg: ⇒ String): Unit

    Definition Classes
    MleLog
  13. def failMessage(e: Throwable, stackTrace: Boolean = true): String

    Attributes
    protected
    Definition Classes
    MleLog
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def get[T](uri: String, f: (Promise[T]) ⇒ AsyncHttpResponseHandler): Future[T]

  16. def get(uri: String): Future[HttpResponse]

    GETs uri.

    GETs uri.

    The returned Future fails with an java.io.IOException if the server cannot be reached, an UnauthorizedHttpException if authentication fails and a NotFoundHttpException if the server responds with a 404. For other errors it may fail with a HttpResponseException containing the appropriate error code.

    uri

    request uri

    returns

    the HTTP response following a successful request

  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def getEmpty(uri: String): Future[Unit]

  19. def handleFailure(t: Throwable, maybeContent: Option[String]): Throwable

  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. val httpClient: AsyncHttpClient

  22. val httpFailureHandler: PartialFunction[Throwable, Throwable]

  23. val httpFailureRefiner: PartialFunction[Throwable, Throwable]

  24. def info(msg: ⇒ String): Unit

    Definition Classes
    MleLog
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. val passThroughHandler: PartialFunction[Throwable, Throwable]

  30. def postFile[T](uri: String, file: File, f: (Promise[T]) ⇒ AsyncHttpResponseHandler): Future[T]

    Performs a multipart/form-data upload of file.

    Performs a multipart/form-data upload of file.

    file

    file to upload

  31. def postFile(resource: String, file: File): Future[HttpResponse]

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def tag: String

    Definition Classes
    UtilLogMleLog
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. def transformUri(uri: String): String

    Gets called before the request is executed.

    Gets called before the request is executed.

    The default implementation trivially returns uri.

    uri

    the user-supplied uri string

    returns

    the uri actually used in the request

  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def warn(msg: ⇒ String): Unit

    Definition Classes
    MleLog
  40. def warn(msg: ⇒ String, ex: Throwable): Unit

    Definition Classes
    MleLog

Inherited from Closeable

Inherited from AutoCloseable

Inherited from UtilLog

Inherited from MleLog

Inherited from AnyRef

Inherited from Any

Ungrouped