From ccd2c4b1d53bf68e04ff1f8bca032d870494d9a8 Mon Sep 17 00:00:00 2001 From: adamw Date: Mon, 24 Jul 2017 12:18:27 +0200 Subject: Better responseAs mapping, done on the client thread pool --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.md') 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 -- cgit v1.2.3