Package io.supabase.utils
Class RestUtils
java.lang.Object
io.supabase.utils.RestUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> CompletableFuture<T>
delete
(com.google.gson.reflect.TypeToken<T> typeToken, Map<String, String> headers, String url, com.google.gson.JsonObject body) static <T> CompletableFuture<T>
static <T> CompletableFuture<T>
getCompletableFuture
(okhttp3.Request request, Type type) static CompletableFuture<FileDownload>
getFile
(okhttp3.Request request) static <T> CompletableFuture<T>
post
(com.google.gson.reflect.TypeToken<T> typeToken, Map<String, String> headers, String url, com.google.gson.JsonObject body) static <T> CompletableFuture<T>
put
(com.google.gson.reflect.TypeToken<T> typeToken, Map<String, String> headers, String url, com.google.gson.JsonObject body)
-
Field Details
-
JSON
public static final okhttp3.MediaType JSON
-
-
Constructor Details
-
RestUtils
public RestUtils()
-
-
Method Details
-
get
public static <T> CompletableFuture<T> get(com.google.gson.reflect.TypeToken<T> typeToken, Map<String, String> headers, String url) -
post
public static <T> CompletableFuture<T> post(com.google.gson.reflect.TypeToken<T> typeToken, Map<String, String> headers, String url, com.google.gson.JsonObject body) -
put
public static <T> CompletableFuture<T> put(com.google.gson.reflect.TypeToken<T> typeToken, Map<String, String> headers, String url, com.google.gson.JsonObject body) -
delete
public static <T> CompletableFuture<T> delete(com.google.gson.reflect.TypeToken<T> typeToken, Map<String, String> headers, String url, com.google.gson.JsonObject body) -
getCompletableFuture
@NotNull public static <T> CompletableFuture<T> getCompletableFuture(okhttp3.Request request, Type type) -
getFile
-