All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sttp.client4.DefaultSyncBackend.scala Maven / Gradle / Ivy

There is a newer version: 4.0.0-M17
Show newest version
package sttp.client4

import sttp.client4.curl.CurlBackend
import sttp.client4.testing.SyncBackendStub

object DefaultSyncBackend {

  /** Creates a default synchronous backend, which is currently based on [[CurlBackend]]. */
  def apply(): SyncBackend = CurlBackend()

  /** Create a stub backend for testing. See [[SyncBackendStub]] for details on how to configure stub responses. */
  def stub: SyncBackendStub = SyncBackendStub
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy