aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/scala/com/softwaremill/sttp/testing/streaming/TestStreamingBackend.scala
blob: 266c402590f4c0ee43a96a57bae0bcb04ef36ec6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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]
}