t

play.api.http

DefaultWriteables

trait DefaultWriteables extends LowPriorityWriteables

Default Writeable.

Source
Writeable.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultWriteables
  2. LowPriorityWriteables
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. implicit val wByteArray: Writeable[Array[Byte]]

    Straightforward Writeable for Array[Byte] values.

  2. implicit val wBytes: Writeable[ByteString]

    Straightforward Writeable for ByteString values.

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

    Straightforward Writeable for String values.

  4. 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.

    Definition Classes
    LowPriorityWriteables
  5. implicit val writeableOf_EmptyContent: [EmptyContent]

    Writeable for empty responses.

  6. def writeableOf_JsValue(codec: Codec, contentType: Option[String] = None): [JsValue]

    Writeable for JsValue values using an arbitrary codec.

    Writeable for JsValue values using an arbitrary codec. Can be used to force a non-UTF-8 encoding for JSON.

  7. implicit def writeableOf_JsValue: [JsValue]

    Writeable for JsValue values that writes to UTF-8, so they can be sent with the application/json media type.

  8. def writeableOf_MultipartFormData[A](boundary: Option[String])(implicit codec: Codec): [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.

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

    Writeable for NodeBuffer values - literal Scala XML.

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

    Writeable for NodeSeq values - literal Scala XML.

  11. implicit def writeableOf_XmlContent(implicit codec: Codec, ct: [Xml]): [Xml]

    Writeable for play.twirl.api.Xml values.

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

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

    Writeable for urlEncodedForm values

Deprecated Value Members

  1. def writeableOf_MultipartFormData[A](codec: Codec, contentType: Option[String]): [MultipartFormData[A]]

    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.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) Use method that takes boundary and implicit codec

  2. def writeableOf_MultipartFormData[A](codec: Codec, aWriteable: [FilePart[A]]): [MultipartFormData[A]]

    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.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) Use method that takes boundary and implicit codec