aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/scala/com/softwaremill/sttp/RequestT.scala
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/scala/com/softwaremill/sttp/RequestT.scala')
-rw-r--r--core/src/main/scala/com/softwaremill/sttp/RequestT.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/main/scala/com/softwaremill/sttp/RequestT.scala b/core/src/main/scala/com/softwaremill/sttp/RequestT.scala
index 26eb0f1..91635e1 100644
--- a/core/src/main/scala/com/softwaremill/sttp/RequestT.scala
+++ b/core/src/main/scala/com/softwaremill/sttp/RequestT.scala
@@ -215,6 +215,11 @@ case class RequestT[U[_], T, +S](
def readTimeout(t: Duration): RequestT[U, T, S] =
this.copy(options = options.copy(readTimeout = t))
+ /**
+ * Specifies the target type to which the response body should be read.
+ * Note that this replaces any previous specifications, which also includes
+ * any previous `mapResponse` invocations.
+ */
def response[T2, S2 >: S](ra: ResponseAs[T2, S2]): RequestT[U, T2, S2] =
this.copy(response = ra)