aboutsummaryrefslogtreecommitdiff
path: root/akka-http-handler
diff options
context:
space:
mode:
Diffstat (limited to 'akka-http-handler')
-rw-r--r--akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala6
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)
}