|
|
|
|
|
by noelwelsh
5317 days ago
|
|
Many people, including experienced Scala developers (e.g. me), find Dispatch hard to use. The BlueEyes HTTP Client is much simpler: val client = new HttpClientXLightWeb
client.host("somesite.com").get[ByteChunk]("/some/url")
That, plus some imports, is all you need |
|
It's mostly an absurd comparison (equivalent to Fibonacci or something), and a tangent besides, but in Clojure:
That gives me the response as a string. If I want a binary stream: The same functions work for URLs, URIs, Files, and strings that describe them.