diff options
author | adamw <adam@warski.org> | 2017-07-24 12:18:27 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-07-24 12:18:27 +0200 |
commit | ccd2c4b1d53bf68e04ff1f8bca032d870494d9a8 (patch) | |
tree | e298b14664b07dc9aab54f74abe956fb797fe1bb /README.md | |
parent | fef16dd2dbd0f53ee7432ab2ff39255279932ac4 (diff) | |
download | sttp-ccd2c4b1d53bf68e04ff1f8bca032d870494d9a8.tar.gz sttp-ccd2c4b1d53bf68e04ff1f8bca032d870494d9a8.tar.bz2 sttp-ccd2c4b1d53bf68e04ff1f8bca032d870494d9a8.zip |
Better responseAs mapping, done on the client thread pool
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -203,10 +203,10 @@ in a `Future`. Next you'll need to add an implicit value: ```scala -implicit val sttpHandler = new AkkaHttpSttpHandler() +implicit val sttpHandler = AkkaHttpSttpHandler() // or, if you'd like to use an existing actor system: -implicit val sttpHandler = new AkkaHttpSttpHandler(actorSystem) +implicit val sttpHandler = AkkaHttpSttpHandler.usingActorSystem(actorSystem) ``` This backend supports sending and receiving @@ -238,7 +238,7 @@ import com.softwaremill.sttp.akkahttp._ import akka.stream.scaladsl.Source import akka.util.ByteString -implicit val sttpHandler = new AkkaHttpSttpHandler(actorSystem) +implicit val sttpHandler = AkkaHttpSttpHandler() val response: Future[Response[Source[ByteString, Any]]] = sttp |