Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import dispatch.Defaults._
- import dispatch._
- import scala.util.{Failure, Success}
- object app extends App {
- println("Hello")
- val http = Http.configure(_ setFollowRedirect(true))
- val target = url("https://www.bing.com/")
- val f = http(target > as.String)
- f onComplete{
- case Success(x) => println(x.length)
- case Failure(y) => println(y.getMessage)
- }
- println("END!!!")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement