c

play.api.test.WsTestClient

InternalWSClient

class InternalWSClient 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.

Source
WSTestClient.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InternalWSClient
  2. WSClient
  3. Closeable
  4. AutoCloseable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new InternalWSClient(scheme: String, port: WsTestClient.Port)

    scheme

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

    port

    the port to connect to the server on.

Value Members

  1. def close(): Unit

    Closes this client, and releases underlying resources.

    Closes this client, and releases underlying resources.

    Definition Classes
    WSClient → Closeable → AutoCloseable
  2. 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
  3. def url(url: String): WSRequest

    Generates a request.

    Generates a request.

    url

    The base URL to make HTTP requests to.

    returns

    a request

    Definition Classes
    WSClient