diff options
Diffstat (limited to 'tests/src/test/scala/com/softwaremill/sttp/streaming/TestStreamingBackend.scala')
-rw-r--r-- | tests/src/test/scala/com/softwaremill/sttp/streaming/TestStreamingBackend.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/src/test/scala/com/softwaremill/sttp/streaming/TestStreamingBackend.scala b/tests/src/test/scala/com/softwaremill/sttp/streaming/TestStreamingBackend.scala new file mode 100644 index 0000000..5fc1c57 --- /dev/null +++ b/tests/src/test/scala/com/softwaremill/sttp/streaming/TestStreamingBackend.scala @@ -0,0 +1,15 @@ +package com.softwaremill.sttp.streaming + +import com.softwaremill.sttp.{ForceWrappedValue, SttpBackend} + +import scala.language.higherKinds + +trait TestStreamingBackend[R[_], S] { + implicit def backend: SttpBackend[R, S] + + implicit def forceResponse: ForceWrappedValue[R] + + def bodyProducer(body: String): S + + def bodyConsumer(stream: S): R[String] +} |