diff options
author | adamw <adam@warski.org> | 2017-06-29 22:25:59 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-06-29 22:25:59 +0200 |
commit | 3664508d913fa5787ec6144fee6a12ecfe2f14ae (patch) | |
tree | b5bf7e0adcc2e527924a01dce5cdbcccbe779e1c /core/src/main | |
parent | 1ca7543ee1ddf9f10ba0bdfce2b34a9f5d713b7c (diff) | |
download | sttp-3664508d913fa5787ec6144fee6a12ecfe2f14ae.tar.gz sttp-3664508d913fa5787ec6144fee6a12ecfe2f14ae.tar.bz2 sttp-3664508d913fa5787ec6144fee6a12ecfe2f14ae.zip |
default handler is an object
Diffstat (limited to 'core/src/main')
-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) |