object Writeable extends DefaultWriteables
- Alphabetic
- By Inheritance
- Writeable
- DefaultWriteables
- LowPriorityWriteables
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def apply[A](transform: (A) => ByteString)(implicit ct: ContentTypeOf[A]): Writeable[A]
Creates a
Writeable[A]
using a content type forA
available in the implicit scopeCreates a
Writeable[A]
using a content type forA
available in the implicit scope- transform
Serializing function
- def apply[A](transform: (A) => ByteString, contentType: Option[String]): Writeable[A]
- implicit val wByteArray: Writeable[Array[Byte]]
Straightforward
Writeable
for Array[Byte] values.Straightforward
Writeable
for Array[Byte] values.- Definition Classes
- DefaultWriteables
- implicit val wBytes: Writeable[ByteString]
Straightforward
Writeable
for ByteString values.Straightforward
Writeable
for ByteString values.- Definition Classes
- DefaultWriteables
- implicit def wString(implicit codec: Codec): Writeable[String]
Straightforward
Writeable
for String values.Straightforward
Writeable
for String values.- Definition Classes
- DefaultWriteables
- implicit def writeableOf_Content[C <: Content](implicit codec: Codec, ct: ContentTypeOf[C]): Writeable[C]
Writeable
forplay.twirl.api.Content
values.Writeable
forplay.twirl.api.Content
values.- Definition Classes
- LowPriorityWriteables
- implicit val writeableOf_EmptyContent: [EmptyContent]
Writeable
for empty responses.Writeable
for empty responses.- Definition Classes
- DefaultWriteables
- def writeableOf_JsValue(codec: Codec, contentType: Option[String] = None): [JsValue]
Writeable
forJsValue
values using an arbitrary codec.Writeable
forJsValue
values using an arbitrary codec. Can be used to force a non-UTF-8 encoding for JSON.- Definition Classes
- DefaultWriteables
- implicit def writeableOf_JsValue: [JsValue]
Writeable
forJsValue
values that writes to UTF-8, so they can be sent with the application/json media type.Writeable
forJsValue
values that writes to UTF-8, so they can be sent with the application/json media type.- Definition Classes
- DefaultWriteables
- def writeableOf_MultipartFormData[A](boundary: Option[String])(implicit codec: Codec): [MultipartFormData[A]]
Writeable
forMultipartFormData
.Writeable
forMultipartFormData
.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.
- Definition Classes
- DefaultWriteables
- implicit def writeableOf_NodeBuffer(implicit codec: Codec): Writeable[NodeBuffer]
Writeable
forNodeBuffer
values - literal Scala XML.Writeable
forNodeBuffer
values - literal Scala XML.- Definition Classes
- DefaultWriteables
- implicit def writeableOf_NodeSeq[C <: NodeSeq](implicit codec: Codec): Writeable[C]
Writeable
forNodeSeq
values - literal Scala XML.Writeable
forNodeSeq
values - literal Scala XML.- Definition Classes
- DefaultWriteables
- implicit def writeableOf_XmlContent(implicit codec: Codec, ct: [Xml]): [Xml]
Writeable
forplay.twirl.api.Xml
values.Writeable
forplay.twirl.api.Xml
values. Trims surrounding whitespace.- Definition Classes
- DefaultWriteables
- implicit def writeableOf_urlEncodedForm(implicit codec: Codec): Writeable[Map[String, Seq[String]]]
Writeable
forurlEncodedForm
valuesWriteable
forurlEncodedForm
values- Definition Classes
- DefaultWriteables
Deprecated Value Members
- def writeableOf_MultipartFormData[A](codec: Codec, contentType: Option[String]): [MultipartFormData[A]]
Writeable
forMultipartFormData
.Writeable
forMultipartFormData
.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.
- Definition Classes
- DefaultWriteables
- Annotations
- @deprecated
- Deprecated
(Since version 2.9.0) Use method that takes boundary and implicit codec
- def writeableOf_MultipartFormData[A](codec: Codec, aWriteable: [FilePart[A]]): [MultipartFormData[A]]
Writeable
forMultipartFormData
.Writeable
forMultipartFormData
.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.
- Definition Classes
- DefaultWriteables
- Annotations
- @deprecated
- Deprecated
(Since version 2.9.0) Use method that takes boundary and implicit codec
Helper utilities for
Writeable
.