<< <in reboot

26 views
Skip to first unread message

pelagic

unread,
Nov 10, 2012, 7:58:46 PM11/10/12
to dispatc...@googlegroups.com
Is there any reason why this method doesn't exist in reboot?

  def <<< (body: String) = {
    defaultMethod("PUT").setBody(body)
  }

Currently it looks like you can only PUT a java.io.File.


Cheers,
Greg

pelagic

unread,
Nov 10, 2012, 8:25:40 PM11/10/12
to dispatc...@googlegroups.com
Answering my own question, sorry should have read this first!!!!

http://dispatch.databinder.net/HTTP+methods+and+parameters.html

something like this should work

url("someurl").PUT.setBody("{foo: "bar"}")
Reply all
Reply to author
Forward
0 new messages