The response body as String.
The response body as String.
The response body as the given type.
The response body as the given type. This renders as the given type. You must have a BodyReadable in implicit scope, which is done with
class MyClass extends play.api.libs.ws.WSBodyReadables { // JSON and XML body readables }
The simplest use case is
val responseBodyAsString: String = response.getBody[String]
But you can also render as JSON
val responseBodyAsJson: JsValue = response.getBody[JsValue]
or as XML:
val xml: Elem = response.getBody[Elem]
The response body as a byte string.
The response body as a byte string.
Get only one cookie, using the cookie name.
Get only one cookie, using the cookie name.
Get all the cookies.
Get all the cookies.
Get a response header.
Get a response header.
Return the current headers of the request being constructed
Return the current headers of the request being constructed
The response status code.
The response status code.
The response status message.
The response status message.
Get the underlying response object, i.e.
Get the underlying response object, i.e. play.shaded.ahc.org.asynchttpclient.Response
val ahcResponse = response.underlying[play.shaded.ahc.org.asynchttpclient.Response]
the underlying WS response
Return the current headers of the request being constructed
Return the current headers of the request being constructed
(Since version 2.6.0) Please use request.headers
The response body as Json.
The response body as Json.
(Since version 2.6.0) Use response.body[JsValue]
The response body as Xml.
The response body as Xml.
(Since version 2.6.0) Use response.body[Elem]
A WS HTTP Response backed by an AsyncHttpClient response.
the underlying WS response