aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authoradamw <adam@warski.org>2017-07-24 12:18:27 +0200
committeradamw <adam@warski.org>2017-07-24 12:18:27 +0200
commitccd2c4b1d53bf68e04ff1f8bca032d870494d9a8 (patch)
treee298b14664b07dc9aab54f74abe956fb797fe1bb /README.md
parentfef16dd2dbd0f53ee7432ab2ff39255279932ac4 (diff)
downloadsttp-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.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index eaa0a5c..415179a 100644
--- a/README.md
+++ b/README.md
@@ -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