diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/scala/com/softwaremill/sttp/HttpConnectionSttpHandler.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/com/softwaremill/sttp/HttpConnectionSttpHandler.scala b/core/src/main/scala/com/softwaremill/sttp/HttpConnectionSttpHandler.scala index 82e7524..b9c6af4 100644 --- a/core/src/main/scala/com/softwaremill/sttp/HttpConnectionSttpHandler.scala +++ b/core/src/main/scala/com/softwaremill/sttp/HttpConnectionSttpHandler.scala @@ -10,7 +10,7 @@ import com.softwaremill.sttp.model._ import scala.annotation.tailrec import scala.io.Source -class HttpConnectionSttpHandler extends SttpHandler[Id] { +object HttpConnectionSttpHandler extends SttpHandler[Id] { override def send[T](r: Request, responseAs: ResponseAs[T]): Response[T] = { val c = r.uri.toURL.openConnection().asInstanceOf[HttpURLConnection] c.setRequestMethod(r.method.m) |