diff options
author | adamw <adam@warski.org> | 2017-07-24 17:05:07 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-07-24 17:05:07 +0200 |
commit | 81d290bc8658841f48d8a7fc10d88813eba16ffc (patch) | |
tree | 04ddb3defcfd65b041ec58046958a808a475b512 /akka-http-handler/src | |
parent | b5f0c5387f7a98875f60fdf09c8dbe56e5c2766d (diff) | |
download | sttp-81d290bc8658841f48d8a7fc10d88813eba16ffc.tar.gz sttp-81d290bc8658841f48d8a7fc10d88813eba16ffc.tar.bz2 sttp-81d290bc8658841f48d8a7fc10d88813eba16ffc.zip |
Hiding specific implementation types
Diffstat (limited to 'akka-http-handler/src')
-rw-r--r-- | akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala b/akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala index 34b7df4..49446f2 100644 --- a/akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala +++ b/akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala @@ -195,7 +195,8 @@ object AkkaHttpSttpHandler { * context. */ def apply()( - implicit ec: ExecutionContext = ExecutionContext.Implicits.global) = + implicit ec: ExecutionContext = ExecutionContext.Implicits.global) + : SttpHandler[Future, Source[ByteString, Any]] = new AkkaHttpSttpHandler(ActorSystem("sttp"), ec, true) /** @@ -206,6 +207,7 @@ object AkkaHttpSttpHandler { * context. */ def usingActorSystem(actorSystem: ActorSystem)( - implicit ec: ExecutionContext = ExecutionContext.Implicits.global) = + implicit ec: ExecutionContext = ExecutionContext.Implicits.global) + : SttpHandler[Future, Source[ByteString, Any]] = new AkkaHttpSttpHandler(actorSystem, ec, false) } |