DefaultWriteables

play.api.http.DefaultWriteables

Default Writeable.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Writeable

Members list

Value members

Concrete methods

def writeableOf_JsValue(codec: Codec, contentType: Option[String]): Writeable[JsValue]

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

def writeableOf_MultipartFormData[A](boundary: Option[String])(implicit codec: Codec): Writeable[MultipartFormData[A]]

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

Deprecated methods

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

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

Implicits

Implicits

implicit val wByteArray: Writeable[Array[Byte]]

Straightforward Writeable for Array[Byte] values.

Straightforward Writeable for Array[Byte] values.

Attributes

implicit val wBytes: Writeable[ByteString]

Straightforward Writeable for ByteString values.

Straightforward Writeable for ByteString values.

Attributes

implicit def wString(implicit codec: Codec): Writeable[String]

Straightforward Writeable for String values.

Straightforward Writeable for String values.

Attributes

Writeable for empty responses.

Writeable for empty responses.

Attributes

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

implicit def writeableOf_NodeBuffer(implicit codec: Codec): Writeable[NodeBuffer]

Writeable for NodeBuffer values - literal Scala XML.

Writeable for NodeBuffer values - literal Scala XML.

Attributes

implicit def writeableOf_NodeSeq[C <: NodeSeq](implicit codec: Codec): Writeable[C]

Writeable for NodeSeq values - literal Scala XML.

Writeable for NodeSeq values - literal Scala XML.

Attributes

implicit def writeableOf_XmlContent(implicit codec: Codec, ct: ContentTypeOf[Xml]): Writeable[Xml]

Writeable for play.twirl.api.Xml values. Trims surrounding whitespace.

Writeable for play.twirl.api.Xml values. Trims surrounding whitespace.

Attributes

implicit def writeableOf_urlEncodedForm(implicit codec: Codec): Writeable[Map[String, Seq[String]]]

Writeable for urlEncodedForm values

Writeable for urlEncodedForm values

Attributes

Inherited implicits

implicit def writeableOf_Content[C <: Content](implicit codec: Codec, ct: ContentTypeOf[C]): Writeable[C]

Writeable for play.twirl.api.Content values.

Writeable for play.twirl.api.Content values.

Attributes

Inherited from:
LowPriorityWriteables