WSClient
play.api.libs.ws.WSClient
trait WSClient extends Closeable
A Play specific WS client that can use Play specific classes in the request and response building.
Typically, access this class through dependency injection, i.e.
class MyService @Inject()(ws: WSClient) {
val response: Future[WSResponse] = ws.url("https://example.com").get()
}
Please see the documentation at https://www.playframework.com/documentation/latest/ScalaWS for more details.
Attributes
- Graph
-
- Supertypes
-
trait Closeabletrait AutoCloseableclass Objecttrait Matchableclass Any
Members list
In this article