Class DosyaHttpClient

java.lang.Object
dev.dosya.sdk.internal.DosyaHttpClient

public final class DosyaHttpClient extends Object
Internal HTTP client that handles request execution, retries, and serialization.

This class is internal to the SDK and should not be used directly by consumers.

Since:
0.1.0
  • Constructor Details

  • Method Details

    • request

      public com.google.gson.JsonObject request(HttpRequest req)
    • requestAs

      public <T> T requestAs(HttpRequest req, Class<T> type)
    • requestAs

      public <T> T requestAs(HttpRequest req, Type type)
    • fromJson

      public <T> T fromJson(com.google.gson.JsonElement element, Class<T> type)
    • fromJson

      public <T> T fromJson(com.google.gson.JsonElement element, Type type)
    • toJsonTree

      public com.google.gson.JsonElement toJsonTree(Object src)
    • doFetch

    • getGson

      public com.google.gson.Gson getGson()
    • getMaxRetries

      public int getMaxRetries()
    • getBaseDelay

      public long getBaseDelay()
    • getMaxDelay

      public long getMaxDelay()
    • getBaseUrl

      public String getBaseUrl()
    • encode

      public static String encode(String value)