WSBodyWritables

play.api.libs.ws.WSBodyWritables
See theWSBodyWritables companion object
trait WSBodyWritables extends DefaultBodyWritables, JsonBodyWritables, XMLBodyWritables

JSON, XML and Multipart Form Data Writables used for Play-WS bodies.

Attributes

Companion
object
Graph
Supertypes
trait XMLBodyWritables
trait JsonBodyWritables
trait DefaultBodyWritables
class Object
trait Matchable
class Any
Show all
Known subtypes
object WSBodyWritables.type
trait WSRequest

Members list

Value members

Inherited methods

def body(objectMapper: ObjectMapper): BodyWritable[JsonNode]

Attributes

Inherited from:
JsonBodyWritables

Implicits

Implicits

implicit val bodyWritableOf_Multipart: BodyWritable[Source[Part[Source[ByteString, _]], _]]

Inherited implicits

implicit val writableOf_File: BodyWritable[File]

Creates an SourceBody with "application/octet-stream" content type from a file.

Creates an SourceBody with "application/octet-stream" content type from a file.

Attributes

Inherited from:
DefaultBodyWritables
implicit val writableOf_InputStream: BodyWritable[Supplier[InputStream]]

Creates an SourceBody with "application/octet-stream" content type from an inputstream.

Creates an SourceBody with "application/octet-stream" content type from an inputstream.

Attributes

Inherited from:
DefaultBodyWritables
implicit val writableOf_Source: BodyWritable[Source[ByteString, _]]

Creates an SourceBody with "application/octet-stream" content type from a file.

Creates an SourceBody with "application/octet-stream" content type from a file.

Attributes

Inherited from:
DefaultBodyWritables
implicit val writeableOf_ByteArray: BodyWritable[Array[Byte]]

Creates an InMemoryBody with "application/octet-stream" content type from an array of bytes.

Creates an InMemoryBody with "application/octet-stream" content type from an array of bytes.

Attributes

Inherited from:
DefaultBodyWritables
implicit val writeableOf_ByteBuffer: BodyWritable[ByteBuffer]

Creates an InMemoryBody with "application/octet-stream" content type from a bytebuffer.

Creates an InMemoryBody with "application/octet-stream" content type from a bytebuffer.

Attributes

Inherited from:
DefaultBodyWritables
implicit val writeableOf_Bytes: BodyWritable[ByteString]

Creates an InMemoryBody with "application/octet-stream" content type.

Creates an InMemoryBody with "application/octet-stream" content type.

Attributes

Inherited from:
DefaultBodyWritables
implicit val writeableOf_Document: BodyWritable[Document]

Creates an InMemoryBody with "text/xml" content type.

Creates an InMemoryBody with "text/xml" content type.

Attributes

Inherited from:
XMLBodyWritables
implicit val writeableOf_JsValue: BodyWritable[JsValue]

Creates an InMemoryBody with "application/json" content type, using the static ObjectMapper.

Creates an InMemoryBody with "application/json" content type, using the static ObjectMapper.

Attributes

Inherited from:
JsonBodyWritables
implicit val writeableOf_NodeBuffer: BodyWritable[NodeBuffer]

Creates an InMemoryBody with "text/xml" content type.

Creates an InMemoryBody with "text/xml" content type.

Attributes

Inherited from:
XMLBodyWritables
implicit def writeableOf_NodeSeq[C <: NodeSeq]: BodyWritable[C]

Creates an InMemoryBody with "text/xml" content type.

Creates an InMemoryBody with "text/xml" content type.

Attributes

Inherited from:
XMLBodyWritables
implicit val writeableOf_String: BodyWritable[String]

Creates an InMemoryBody with "text/plain" content type.

Creates an InMemoryBody with "text/plain" content type.

Attributes

Inherited from:
DefaultBodyWritables
implicit val writeableOf_StringBuilder: BodyWritable[StringBuilder]

Creates an InMemoryBody with "text/plain" content type from a StringBuilder

Creates an InMemoryBody with "text/plain" content type from a StringBuilder

Attributes

Inherited from:
DefaultBodyWritables
implicit val writeableOf_WsBody: BodyWritable[WSBody]

Creates a BodyWritable with an identity function, with "application/octet-stream" content type.

Creates a BodyWritable with an identity function, with "application/octet-stream" content type.

Attributes

Inherited from:
DefaultBodyWritables
implicit val writeableOf_urlEncodedForm: BodyWritable[Map[String, Seq[String]]]

Creates an InMemoryBody with "application/x-www-form-urlencoded" content type.

Creates an InMemoryBody with "application/x-www-form-urlencoded" content type.

Attributes

Inherited from:
DefaultBodyWritables
implicit val writeableOf_urlEncodedSimpleForm: BodyWritable[Map[String, String]]

Attributes

Inherited from:
DefaultBodyWritables