Writeable

play.api.http.Writeable
See theWriteable companion object
class Writeable[-A](val transform: A => ByteString, val contentType: Option[String])

Transform a value of type A to a Byte Array.

Type parameters

A

the content type

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def map[B](f: B => A): Writeable[B]
def toEntity(a: A): HttpEntity

Concrete fields

val transform: A => ByteString