Package live.crowdcontrol.cc4j.util
Class HttpUtil
java.lang.Object
live.crowdcontrol.cc4j.util.HttpUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> @NotNull CompletableFuture<T> apiGet(@NotNull String spec, @NotNull com.fasterxml.jackson.core.type.TypeReference<T> output, @Nullable String token) <T> @NotNull CompletableFuture<T> @NotNull CompletableFuture<String> <T> @NotNull CompletableFuture<T> apiPost(@NotNull String spec, @NotNull com.fasterxml.jackson.core.type.TypeReference<T> output, @Nullable String token, @Nullable Object data) <T> @NotNull CompletableFuture<T> apiPost(@NotNull String spec, @NotNull Class<T> output, @Nullable String token, @Nullable Object data) @NotNull CompletableFuture<String> <T> @NotNull CompletableFuture<T> apiPut(@NotNull String spec, @NotNull com.fasterxml.jackson.core.type.TypeReference<T> output, @Nullable String token, @Nullable Object data) <T> @NotNull CompletableFuture<T> apiPut(@NotNull String spec, @NotNull Class<T> output, @Nullable String token, @Nullable Object data) @NotNull CompletableFuture<String>
-
Field Details
-
OPEN_API_URL
-
HTTP_CLIENT
-
-
Constructor Details
-
HttpUtil
-
-
Method Details
-
apiGet
@NotNull public <T> @NotNull CompletableFuture<T> apiGet(@NotNull @NotNull String spec, @NotNull @NotNull com.fasterxml.jackson.core.type.TypeReference<T> output, @Nullable @Nullable String token) -
apiGet
@NotNull public <T> @NotNull CompletableFuture<T> apiGet(@NotNull @NotNull String spec, @NotNull @NotNull Class<T> output, @Nullable @Nullable String token) -
apiGet
@NotNull public @NotNull CompletableFuture<String> apiGet(@NotNull @NotNull String spec, @Nullable @Nullable String token) -
apiPost
@NotNull public <T> @NotNull CompletableFuture<T> apiPost(@NotNull @NotNull String spec, @NotNull @NotNull com.fasterxml.jackson.core.type.TypeReference<T> output, @Nullable @Nullable String token, @Nullable @Nullable Object data) -
apiPost
@NotNull public <T> @NotNull CompletableFuture<T> apiPost(@NotNull @NotNull String spec, @NotNull @NotNull Class<T> output, @Nullable @Nullable String token, @Nullable @Nullable Object data) -
apiPost
@NotNull public @NotNull CompletableFuture<String> apiPost(@NotNull @NotNull String spec, @Nullable @Nullable String token, @Nullable @Nullable Object data) -
apiPut
@NotNull public <T> @NotNull CompletableFuture<T> apiPut(@NotNull @NotNull String spec, @NotNull @NotNull com.fasterxml.jackson.core.type.TypeReference<T> output, @Nullable @Nullable String token, @Nullable @Nullable Object data) -
apiPut
@NotNull public <T> @NotNull CompletableFuture<T> apiPut(@NotNull @NotNull String spec, @NotNull @NotNull Class<T> output, @Nullable @Nullable String token, @Nullable @Nullable Object data) -
apiPut
@NotNull public @NotNull CompletableFuture<String> apiPut(@NotNull @NotNull String spec, @Nullable @Nullable String token, @Nullable @Nullable Object data)
-