InternalWSClient

play.api.test.WsTestClient$.InternalWSClient
class InternalWSClient(scheme: String, port: Port) extends WSClient

Creates a standalone WSClient, using its own ActorSystem and Netty thread pool.

This client has no dependencies at all on the underlying system, but is wasteful of resources.

Value parameters

port

the port to connect to the server on.

scheme

the scheme to connect on ("http" or "https")

Attributes

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 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): WSRequest

Generates a request.

Generates a request.

Value parameters

url

The base URL to make HTTP requests to.

Attributes

Returns

a request