Is contentType now mandatory for BodyWritable?

8 views
Skip to first unread message

Zoro

unread,
Aug 23, 2017, 4:29:17 AM8/23/17
to Play Framework
Play 2.5

object Writeable extends DefaultWriteables {

  def apply[A](transform: (A => ByteString), contentType: Option[String]): Writeable[A] =
    new Writeable(transform, contentType)

Play 2.6

object BodyWritable {
  def apply[A](transform: (A => WSBody), contentType: String): BodyWritable[A] =
    new BodyWritable(transform, contentType)
}


Greg Methvin

unread,
Aug 25, 2017, 12:21:41 AM8/25/17
to play-framework

--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/de698ca6-d045-4fff-bb01-d9eb9eb870aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Greg Methvin
Tech Lead - Play Framework

Reply all
Reply to author
Forward
0 new messages