Created
April 4, 2015 14:48
-
-
Save hhariri/19b02fb111bf4c327f8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return ObservableHttp.createRequest(HttpAsyncMethods.createGet(url), client) | |
.toObservable() | |
.flatMap({ response -> response.getContent().map { | |
byte -> | |
String(byte) | |
} | |
}) | |
.toBlocking() | |
.forEach { | |
data -> println(data) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment