Skip to content

Instantly share code, notes, and snippets.

@hhariri
Created February 3, 2014 06:48
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 hhariri/8779720 to your computer and use it in GitHub Desktop.
Save hhariri/8779720 to your computer and use it in GitHub Desktop.
fun main(args: Array<String>) {
val httpClient = HttpClient()
httpClient.get("http://site.com") { response -> Unit
println(response.body)
}
}
@antonarhipov
Copy link

It would have been much nicer and cleaner without "response -> Unit"

@hhariri
Copy link
Author

hhariri commented Feb 3, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment