XMLBodyReadables

play.api.libs.ws.XMLBodyReadables
See theXMLBodyReadables companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Implicits

Inherited implicits

implicit val readableAsXml: BodyReadable[Elem]

Converts a response body into XML document:

Converts a response body into XML document:

import scala.xml.Elem

import play.api.libs.ws.StandaloneWSResponse
import play.api.libs.ws.XMLBodyReadables._

def foo(resp: StandaloneWSResponse): Elem = resp.body[Elem]

Attributes

Inherited from:
XMLBodyReadables