Please refer to the WS API in the Play documentation for easy Http calls examples.
Play Framework with dispatch(scala) : where should I install dispatch?
-
13-10-2022 - |
Question
I am trying to parsing JSON with scala.
So I make a scala Play Framework project. I heard if I want to use HttpUrlConnection like java, I need to import dispath classes.
I got that, but problem is I can guess where to install(?) this.
I visited dispatch homepage which explain install that library.
Link : http://dispatch.databinder.net/Dispatch.html
Follows are what I did :
make an folder for library. names 'lib' and I put right under my project folder(where other folders are, like app, conf, target...)
move inside 'lib' folder and make an script like dispatch homepage says. after I command 'sbt console', I got target folder and project folder.
Now, I do not know where to put this. My Project directory looks like this.
test01/lib
/project
/app
/target
/logs
/public
/test
And this is under lib, which I just made to install dispatch library.
../../lib/build.sbt
/target
/project/target
Solution