Helper utilities for Writeable.
Attributes
Members list
Value members
Concrete methods
Creates a Writeable[A] using a content type for A available in the implicit scope
Creates a Writeable[A] using a content type for A available in the implicit scope
Value parameters
- transform
-
Serializing function
Attributes
Inherited methods
Writeable for JsValue values using an arbitrary codec. Can be used to force a non-UTF-8 encoding for JSON.
Writeable for JsValue values using an arbitrary codec. Can be used to force a non-UTF-8 encoding for JSON.
Attributes
- Inherited from:
- DefaultWriteables
Writeable for MultipartFormData.
Writeable for MultipartFormData.
If you pass a boundary, it will be used to separate the data/file parts of the multipart/form-data body. If you don't pass a boundary a random one will be generated.
Attributes
- Inherited from:
- DefaultWriteables
Deprecated and Inherited methods
Writeable for MultipartFormData.
Writeable for MultipartFormData.
If you pass a contentType which contains a boundary, this boundary will be used to separate the data/file parts of the multipart/form-data body. If you don't pass a contentType, or it does not contain a boundary, a random one will be generated.
Attributes
- Deprecated
- true
- Inherited from:
- DefaultWriteables
Writeable for MultipartFormData.
Writeable for MultipartFormData.
If the passed writeable contains a contentType with a boundary, this boundary will be used to separate the data/file parts of the multipart/form-data body. If you don't pass a contentType with the writeable, or it does not contain a boundary, a random one will be generated.
Attributes
- Deprecated
- true
- Inherited from:
- DefaultWriteables
Implicits
Inherited implicits
Straightforward Writeable for Array[Byte] values.
Straightforward Writeable for ByteString values.
Straightforward Writeable for String values.
Writeable for play.twirl.api.Content values.
Writeable for empty responses.
Writeable for JsValue values that writes to UTF-8, so they can be sent with the application/json media type.
Writeable for JsValue values that writes to UTF-8, so they can be sent with the application/json media type.
Attributes
- Inherited from:
- DefaultWriteables
Writeable for NodeBuffer values - literal Scala XML.
Writeable for NodeSeq values - literal Scala XML.
Writeable for play.twirl.api.Xml values. Trims surrounding whitespace.
Writeable for play.twirl.api.Xml values. Trims surrounding whitespace.
Attributes
- Inherited from:
- DefaultWriteables
Writeable for urlEncodedForm values