aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authoradamw <adam@warski.org>2017-07-21 13:08:18 +0200
committeradamw <adam@warski.org>2017-07-21 13:08:18 +0200
commit2d099f6832f6e362b9a4cd48e81a16c8d77adeaf (patch)
treeb420ba3ad1917dc8cb30d02ba3bbd0b9eb38f8e6 /core/src
parentfaca3ee694f979ae16c727cb1efe077e8c9ac67b (diff)
downloadsttp-2d099f6832f6e362b9a4cd48e81a16c8d77adeaf.tar.gz
sttp-2d099f6832f6e362b9a4cd48e81a16c8d77adeaf.tar.bz2
sttp-2d099f6832f6e362b9a4cd48e81a16c8d77adeaf.zip
Initial support for async-http-client
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/scala/com/softwaremill/sttp/SttpHandler.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/main/scala/com/softwaremill/sttp/SttpHandler.scala b/core/src/main/scala/com/softwaremill/sttp/SttpHandler.scala
index f0f1fc9..0562fc2 100644
--- a/core/src/main/scala/com/softwaremill/sttp/SttpHandler.scala
+++ b/core/src/main/scala/com/softwaremill/sttp/SttpHandler.scala
@@ -2,6 +2,12 @@ package com.softwaremill.sttp
import scala.language.higherKinds
+/**
+ * @tparam R The type constructor in which responses are wrapped. E.g. `Id`
+ * for synchronous handlers, `Future` for asynchronous handlers.
+ * @tparam S The type of streams that are supported by the handler. `Nothing`,
+ * if streaming requests/responses is not supported by this handler.
+ */
trait SttpHandler[R[_], -S] {
def send[T](request: Request[T, S]): R[Response[T]]
}