blob: 3ea63a332cf6dd266b81284ce3f8582068fd791f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package com.softwaremill.sttp.testing.streaming
import com.softwaremill.sttp.SttpBackend
import com.softwaremill.sttp.testing.ConvertToFuture
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]
}
|