aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/com/softwaremill/sttp/HttpURLConnectionBackend.scala3
1 files changed, 2 insertions, 1 deletions
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)