blob: 05c7199a9b93636c394237cddfd808e9cc129ff5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package com.softwaremill.sttp
import com.softwaremill.sttp.model.{ResponseAs, ResponseAsStream}
import scala.language.higherKinds
trait SttpHandler[R[_]] {
def send[T](request: Request, responseAs: ResponseAs[T]): R[Response[T]]
}
trait SttpStreamHandler[R[_], S] extends SttpHandler[R] {
def send(request: Request, responseAsStream: ResponseAsStream[S]): R[Response[S]]
}
|