Interface IEasyHttpImplementation


public interface IEasyHttpImplementation
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> io.reactivex.rxjava3.core.Observable<T>
    callAsync(Call<T> call)
    Call api in async
    <T> T
    callSync(Call<T> call)
    Call api in sync
    void
    setup(Config config)
    Setup easy http
    default void
    setup(Config config, IMetrics metrics)
    Setup easy http
    void
    Shutdown easy http
  • Method Details

    • setup

      default void setup(Config config, IMetrics metrics)
      Setup easy http
    • setup

      void setup(Config config)
      Setup easy http
    • shutdown

      void shutdown()
      Shutdown easy http
    • callSync

      <T> T callSync(Call<T> call)
      Call api in sync
      Returns:
      sync response
    • callAsync

      <T> io.reactivex.rxjava3.core.Observable<T> callAsync(Call<T> call)
      Call api in async
      Returns:
      observable to notify the final result or error