play.api.libs.ws
Members list
Type members
Classlikes
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BodyReadable.type
This is a type class pattern for writing different types of bodies to a WS request.
This is a type class pattern for writing different types of bodies to a WS request.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BodyWritable.type
Defines common BodyReadable for a response backed by org.asynchttpclient.Response.
Defines common BodyReadable for a response backed by org.asynchttpclient.Response.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object DefaultBodyReadables
Attributes
- Companion
- trait
- Supertypes
- Self type
-
DefaultBodyReadables.type
Default BodyWritable for a request body, for use with requests that take a body such as PUT, POST and PATCH.
Default BodyWritable for a request body, for use with requests that take a body such as PUT, POST and PATCH.
import scala.concurrent.ExecutionContext
import play.api.libs.ws.StandaloneWSClient
import play.api.libs.ws.DefaultBodyWritables._
class MyClass(ws: StandaloneWSClient) {
def postBody()(implicit ec: ExecutionContext) = {
val getBody: String = "..."
ws.url("...").post(getBody).map { response => ??? }
}
}
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object DefaultBodyWritables
Attributes
- Companion
- trait
- Supertypes
- Self type
-
DefaultBodyWritables.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WSCookieclass Objecttrait Matchableclass AnyShow all
A WS proxy.
A WS proxy.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WSProxyServerclass Objecttrait Matchableclass AnyShow all
An in memory body
An in memory body
Value parameters
- bytes
-
The bytes of the body
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WSBodyclass Objecttrait Matchableclass AnyShow all
A body containing a source of bytes
A body containing a source of bytes
Value parameters
- source
-
A flow of the bytes of the body
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WSBodyclass Objecttrait Matchableclass AnyShow all
The WSClient holds the configuration information needed to build a request, and provides a way to get a request holder.
The WSClient holds the configuration information needed to build a request, and provides a way to get a request holder.
Attributes
- Supertypes
-
trait Closeabletrait AutoCloseableclass Objecttrait Matchableclass Any
A WS Request builder.
A WS Request builder.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
A WS HTTP response.
A WS HTTP response.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
WSAuthScheme.type
A body for the request.
A body for the request.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
WS client config
WS client config
Value parameters
- compressionEnabled
-
Set it to true to use gzip/deflater encoding (default is false).
- connectionTimeout
-
The maximum time to wait when connecting to the remote host (default is 120 seconds).
- followRedirects
-
Configures the client to follow 301 and 302 redirects (default is true).
- idleTimeout
-
The maximum time the request can stay idle (connection is established but waiting for more data) (default is 120 seconds).
- requestTimeout
-
The total time you accept a request to take (it will be interrupted even if the remote host is still sending data) (default is 120 seconds).
- ssl
-
use custom SSL / TLS configuration, see https://lightbend.github.io/ssl-config/ for documentation.
- useProxyProperties
-
To use the JVM system’s HTTP proxy settings (http.proxyHost, http.proxyPort) (default is true).
- userAgent
-
To configure the User-Agent header field (default is None).
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
This class creates a WSClientConfig object from a Typesafe Config object.
This class creates a WSClientConfig object from a Typesafe Config object.
You can create a client config from an application.conf file by running
import play.api.libs.ws.WSConfigParser
import com.typesafe.config.ConfigFactory
val wsClientConfig = new WSConfigParser(
ConfigFactory.load(), this.getClass.getClassLoader).parse()
Attributes
- Supertypes
A WS Cookie.
A WS Cookie.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class DefaultWSCookie
A WS proxy.
A WS proxy.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class DefaultWSProxyServer
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
WSRequestExecutor.type
A request filter. Override this trait to implement your own filters:
A request filter. Override this trait to implement your own filters:
import play.api.libs.ws.{ WSRequestFilter, WSRequestExecutor }
class HeaderAppendingFilter(key: String, value: String) extends WSRequestFilter {
override def apply(executor: WSRequestExecutor): WSRequestExecutor = {
WSRequestExecutor(r => executor(r.withHttpHeaders((key, value))))
}
}
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
WSRequestFilter.type
Sign a WS call with OAuth.
Sign a WS call with OAuth.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any