From c426790198c32dd7ee181c46cf1a9be96978397d Mon Sep 17 00:00:00 2001 From: adamw Date: Mon, 9 Oct 2017 11:44:50 +0200 Subject: Cleanup --- .../main/scala/com/softwaremill/sttp/HttpURLConnectionBackend.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/src/main/scala/com/softwaremill/sttp/HttpURLConnectionBackend.scala b/core/src/main/scala/com/softwaremill/sttp/HttpURLConnectionBackend.scala index 62e3e98..f35bd40 100644 --- a/core/src/main/scala/com/softwaremill/sttp/HttpURLConnectionBackend.scala +++ b/core/src/main/scala/com/softwaremill/sttp/HttpURLConnectionBackend.scala @@ -17,6 +17,7 @@ class HttpURLConnectionBackend private ( opts: SttpBackendOptions, customizeConnection: HttpURLConnection => Unit) extends SttpBackend[Id, Nothing] { + override def send[T](r: Request[T, Nothing]): Response[T] = { val c = openConnection(r.uri) c.setRequestMethod(r.method.m) @@ -52,7 +53,7 @@ class HttpURLConnectionBackend private ( } } - override def responseMonad: MonadError[Id] = IdMonad + override val responseMonad: MonadError[Id] = IdMonad private def openConnection(uri: Uri): HttpURLConnection = { val url = new URL(uri.toString) -- cgit v1.2.3