class
WebHttpClient extends UtilLog
Instance Constructors
-
new
WebHttpClient(endpoint: IEndpoint)
-
new
WebHttpClient(host: String, port: Int, username: String, password: String, protocol: Protocol)
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
def
addHeaders(headers: (String, String)*): Unit
-
final
def
asInstanceOf[T0]: T0
-
val
baseUrl: String
-
def
buildResponseHandler(promise: Promise[HttpResponse]): AsyncHttpResponseHandler
-
def
clone(): AnyRef
-
def
debug(msg: ⇒ String): Unit
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
err(msg: ⇒ String): Unit
-
def
failMessage(e: Throwable, stackTrace: Boolean = true): String
-
def
finalize(): Unit
-
def
get[T](resource: String, f: (Promise[T]) ⇒ AsyncHttpResponseHandler): Future[T]
-
def
get(resource: String): Future[HttpResponse]
-
final
def
getClass(): Class[_]
-
def
getEmpty(resource: String): Future[Unit]
-
def
getJson[T](resource: String)(implicit fjs: Reads[T]): Future[T]
-
def
handleFailure(t: Throwable, maybeContent: String): Throwable
-
def
hashCode(): Int
-
val
httpClient: AsyncHttpClient
-
def
info(msg: ⇒ String): Unit
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
post[T](ctx: Context, resource: String, json: JsValue, f: (Promise[T]) ⇒ AsyncHttpResponseHandler): Future[T]
-
def
post(ctx: Context, resource: String, json: JsValue): Future[HttpResponse]
-
def
postFile[T](resource: String, file: File, f: (Promise[T]) ⇒ AsyncHttpResponseHandler): Future[T]
-
def
postFile(resource: String, file: File): Future[HttpResponse]
-
def
postFileEmpty(resource: String, file: File): Future[Unit]
-
def
promisedFuture[T](keepPromise: (Promise[T]) ⇒ Unit): Future[T]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
tag: String
-
def
toString(): String
-
def
uri(resource: String): String
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
final
def
wait(): Unit
-
def
warn(msg: ⇒ String): Unit
-
def
warn(msg: ⇒ String, ex: Throwable): Unit
Inherited from AnyRef
Inherited from Any
Wraps AsyncHttpClient in order to provide a Future-based HTTP API instead of a callback-based one.