AhcWSClient

play.api.libs.ws.ahc.AhcWSClient
See theAhcWSClient companion object
class AhcWSClient(underlyingClient: StandaloneAhcWSClient) extends WSClient

Async WS Client backed by AsyncHttpClient.

See https://www.playframework.com/documentation/latest/ScalaWS for documentation.

Attributes

Companion
object
Graph
Supertypes
trait WSClient
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def close(): Unit

Closes this client, and releases underlying resources.

Closes this client, and releases underlying resources.

Attributes

Definition Classes
WSClient -> Closeable -> AutoCloseable
def standaloneWSClient: StandaloneWSClient

Return the implementation interface of StandaloneAhcWSClient.

Return the implementation interface of StandaloneAhcWSClient.

Attributes

override def underlying[T]: T

The underlying implementation of the client, if any. You must cast explicitly to the type you want.

The underlying implementation of the client, if any. You must cast explicitly to the type you want.

Type parameters

T

the type you are expecting (i.e. isInstanceOf)

Attributes

Returns

the backing class.

Definition Classes
override def url(url: String): WSRequest

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() or execute() which returns a Future[WSResponse].

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() or execute() which returns a Future[WSResponse].

Value parameters

url

The base URL to make HTTP requests to.

Attributes

Returns

a request

Throws
java.lang.IllegalArgumentException

if the URL is invalid.

Definition Classes