aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/scala/com/softwaremill/sttp/testing/streaming/TestStreamingBackend.scala
diff options
context:
space:
mode:
authorAdam Warski <adam@warski.org>2018-05-18 15:52:12 +0200
committerGitHub <noreply@github.com>2018-05-18 15:52:12 +0200
commit588395d018c258eb74f60ad95bad706698bdf915 (patch)
tree2c4ee642d8efb9e6785da3fe8a7decba507329ab /core/src/test/scala/com/softwaremill/sttp/testing/streaming/TestStreamingBackend.scala
parent96ff655f906f2e3f4e9ba906c42e96506f4668b9 (diff)
parent5980017ece9be1ebf30775e5babf81e0e2f1fcd9 (diff)
downloadsttp-588395d018c258eb74f60ad95bad706698bdf915.tar.gz
sttp-588395d018c258eb74f60ad95bad706698bdf915.tar.bz2
sttp-588395d018c258eb74f60ad95bad706698bdf915.zip
Merge pull request #93 from guymers/scalajs-1
Extract MonadAsyncError implementations
Diffstat (limited to 'core/src/test/scala/com/softwaremill/sttp/testing/streaming/TestStreamingBackend.scala')
-rw-r--r--core/src/test/scala/com/softwaremill/sttp/testing/streaming/TestStreamingBackend.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/src/test/scala/com/softwaremill/sttp/testing/streaming/TestStreamingBackend.scala b/core/src/test/scala/com/softwaremill/sttp/testing/streaming/TestStreamingBackend.scala
new file mode 100644
index 0000000..266c402
--- /dev/null
+++ b/core/src/test/scala/com/softwaremill/sttp/testing/streaming/TestStreamingBackend.scala
@@ -0,0 +1,15 @@
+package com.softwaremill.sttp.testing.streaming
+
+import com.softwaremill.sttp.SttpBackend
+
+import scala.language.higherKinds
+
+trait TestStreamingBackend[R[_], S] {
+ implicit def backend: SttpBackend[R, S]
+
+ implicit def convertToFuture: ConvertToFuture[R]
+
+ def bodyProducer(body: String): S
+
+ def bodyConsumer(stream: S): R[String]
+}