diff options
author | adamw <adam@warski.org> | 2017-07-21 13:08:18 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-07-21 13:08:18 +0200 |
commit | 2d099f6832f6e362b9a4cd48e81a16c8d77adeaf (patch) | |
tree | b420ba3ad1917dc8cb30d02ba3bbd0b9eb38f8e6 /core/src | |
parent | faca3ee694f979ae16c727cb1efe077e8c9ac67b (diff) | |
download | sttp-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.scala | 6 |
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]] } |