class AhcWSClient extends WSClient
Async WS Client backed by AsyncHttpClient.
See https://www.playframework.com/documentation/latest/ScalaWS for documentation.
- Source
- AhcWSClient.scala
- Alphabetic
- By Inheritance
- AhcWSClient
- WSClient
- Closeable
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new AhcWSClient(underlyingClient: StandaloneAhcWSClient)
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(classOf[java.lang.CloneNotSupportedException]) @native()
- def close(): Unit
Closes this client, and releases underlying resources.
Closes this client, and releases underlying resources.
- Definition Classes
- AhcWSClient → WSClient → Closeable → AutoCloseable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def underlying[T]: T
The underlying implementation of the client, if any.
The underlying implementation of the client, if any. You must cast explicitly to the type you want.
- T
the type you are expecting (i.e. isInstanceOf)
- returns
the backing class.
- Definition Classes
- AhcWSClient → WSClient
- def url(url: String): WSRequest
Generates a WS Request.
Generates a WS Request. This is a builder that can be used to build up an HTTP request, finally calling a termination method like
get()
orexecute()
which returns aFuture[WSResponse]
.- url
The base URL to make HTTP requests to.
- returns
a request
- Definition Classes
- AhcWSClient → WSClient
- Annotations
- @throws(scala.this.throws.<init>$default$1[IllegalArgumentException])
- Exceptions thrown
java.lang.IllegalArgumentException
if the URL is invalid.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()