Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:1166301
Created Aug 23, 2011

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