Skip to content

Instantly share code, notes, and snippets.

View yingdanh's full-sized avatar

Yingdan Huang yingdanh

  • Boulder, CO
View GitHub Profile
@fmasion
fmasion / gist:7684499
Created November 27, 2013 22:51
Here a way to get around play issue #2015 This will enable you to add a body to WS GET and DELETE methods It uses an Implicit value class to extend WSRequestHolder The only "trick" is to use the same package name to overcome the private[Play] limitation Enjoy
// KEEP CARE TO LET THIS IN THIS PACKAGE
// this enables you to acces and extend private[Play] Objects
package play.api.libs.ws
import scala.concurrent.Future
import java.io.File
import play.api.http.{ Writeable, ContentTypeOf }
import play.api.libs.ws.WS._
import play.api.libs.iteratee.Iteratee