You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
431 B

package nova.monadic_sfx.http.requests
import nova.monadic_sfx.AppTypes
import nova.monadic_sfx.AppTypes.HttpBackend
import nova.monadic_sfx.models._
import sttp.client._
import sttp.client.circe._
class DummyRequest(backend: HttpBackend) extends AppTypes {
private implicit val _backend = backend
def send =
basicRequest
.get(uri"https://httpbin.org/get")
.response(asJson[HttpBinResponse])
.send()
}