Last active
August 29, 2015 14:26
-
-
Save optician/6bd05c454fc06bfeb0e4 to your computer and use it in GitHub Desktop.
Akka-http client sample
This file contains hidden or 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
(Source.single(request -> 42) via Http().superPool() map { | |
case (Success(res), flag) => res.entity.toStrict(1 seconds).map(x => new String(x.data.toArray)) | |
case (Failure(err), flag) => Future.failed(err) | |
}).mapAsyncUnordered(2)(???) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does any way exist to retreive whole document without manual merge (toStrict + mapAsync)?