class AhcWSClient extends WSClient

Async WS Client backed by AsyncHttpClient.

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

Source
AhcWSClient.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AhcWSClient
  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 AhcWSClient(underlyingClient: StandaloneAhcWSClient)

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 standaloneWSClient: StandaloneWSClient

    Return the implementation interface of StandaloneAhcWSClient.

  3. 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
  4. def url(url: String): WSRequest

    Generates a WS Request.

    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].

    url

    The base URL to make HTTP requests to.

    returns

    a request

    Definition Classes
    WSClient
    Annotations
    @throws(scala.this.throws.<init>$default$1[IllegalArgumentException])
    Exceptions thrown

    java.lang.IllegalArgumentException if the URL is invalid.