title: Play WS (2.2.1): post/put large request
body: <p>I'm using Play.WS to issue http requests. My goal is to send a put request with a large file.</p>
  
  <pre><code>val requestHolder = WS.url("http://" + host)
  requestHolder.put(???)
  </code></pre>
  
  <p>I don't know what should be the type of ??? to stream the body. The requestHolder has a put(File file) method - which I can't use because I don't have the file - and put[T](T body) where T can be anything as long as you have an instance of Writable[T].</p>
  
  <p>There are some default writables defined for json, text, xml, etc. But non for an InputStream for example.</p>
  
  <p>The documentation gives a (brief) hint to handle large <em>responses</em> but nothing about large <em>requests</em> (<a href="http://www.playframework.com/documentation/2.2.x/ScalaWS" rel="nofollow">http://www.playframework.com/documentation/2.2.x/ScalaWS</a>)</p>
  
  <p>Anyone knows how to define a writable that would accept an InputStream? Or maybe an Iteratee?</p>