From 2d099f6832f6e362b9a4cd48e81a16c8d77adeaf Mon Sep 17 00:00:00 2001 From: adamw Date: Fri, 21 Jul 2017 13:08:18 +0200 Subject: Initial support for async-http-client --- core/src/main/scala/com/softwaremill/sttp/SttpHandler.scala | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/src/main') 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]] } -- cgit v1.2.3