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

4 years ago
4 years ago
4 years ago
  1. package nova.monadic_sfx.http.requests
  2. import nova.monadic_sfx.AppTypes
  3. import nova.monadic_sfx.AppTypes.HttpBackend
  4. import nova.monadic_sfx.models._
  5. import sttp.client._
  6. import sttp.client.circe._
  7. class DummyRequest(backend: HttpBackend) extends AppTypes {
  8. private implicit val _backend = backend
  9. def send =
  10. basicRequest
  11. .get(uri"https://httpbin.org/get")
  12. .response(asJson[HttpBinResponse])
  13. .send()
  14. }