Skip to content

Instantly share code, notes, and snippets.

Created August 23, 2011 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1166301 to your computer and use it in GitHub Desktop.
Save anonymous/1166301 to your computer and use it in GitHub Desktop.
val request: HttpRequest =
new DefaultHttpRequest(HTTP_1_1, GET, "/")
val responseFuture: Future[HttpResponse] = client(request)
responseFuture onSuccess { responseFuture =>
println(responseFuture)
} onFailure { exception =>
println(exception)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment