StandaloneWSClient

play.api.libs.ws.StandaloneWSClient
trait StandaloneWSClient extends Closeable

The WSClient holds the configuration information needed to build a request, and provides a way to get a request holder.

Attributes

Graph
Supertypes
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def close(): Unit

Closes this client, and releases underlying resources.

Closes this client, and releases underlying resources.

Attributes

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.

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