StandaloneAhcWSClient

play.api.libs.ws.ahc.StandaloneAhcWSClient
See theStandaloneAhcWSClient companion object
class StandaloneAhcWSClient(asyncHttpClient: AsyncHttpClient)(implicit materializer: Materializer) extends StandaloneWSClient

A WS client backed by an AsyncHttpClient.

If you need to debug AsyncHttpClient, add into your conf/logback.xml file.

Value parameters

asyncHttpClient

An already configured asynchttpclient. Note that the WSClient assumes ownership of the lifecycle here, so closing the WSClient will also close asyncHttpClient.

materializer

A materializer, meant to execute the stream

Attributes

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

Members list

Value members

Concrete methods

def close(): Unit

Closes this client, and releases underlying resources.

Closes this client, and releases underlying resources.

Attributes

def underlying[T]: T

Returns instance of AsyncHttpClient

Returns instance of AsyncHttpClient

Attributes

def url(url: String): StandaloneWSRequest

Generates a request. Throws IllegalArgumentException if the URL is invalid.

Generates a request. Throws IllegalArgumentException if the URL is invalid.

Value parameters

url

The base URL to make HTTP requests to.

Attributes

Returns

a request