class AhcWSClient extends WSClient
Ordering
- Alphabetic
- By Inheritance
Inherited
- AhcWSClient
- WSClient
- Closeable
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new AhcWSClient(underlyingClient: StandaloneAhcWSClient)
Value Members
- def close(): Unit
Closes this client, and releases underlying resources.
Closes this client, and releases underlying resources.
- Definition Classes
- → WSClient → Closeable → AutoCloseable
- def standaloneWSClient: StandaloneWSClient
Return the implementation interface of StandaloneAhcWSClient.
- 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
- → 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
- → WSClient
- Annotations
- @throws(scala.this.throws.<init>$default$1[IllegalArgumentException])
- Exceptions thrown
java.lang.IllegalArgumentException
if the URL is invalid.
Async WS Client backed by AsyncHttpClient.
See https://www.playframework.com/documentation/latest/ScalaWS for documentation.