Files
2026-11-21 17:07:18 -05:00

422 lines
8.1 KiB
Java

/* */ package kong.unirest.cosmetics;
/* */
/* */ import java.io.File;
/* */ import java.nio.file.CopyOption;
/* */ import java.time.Instant;
/* */ import java.util.Collection;
/* */ import java.util.Map;
/* */ import java.util.Optional;
/* */ import java.util.concurrent.CompletableFuture;
/* */ import java.util.function.Consumer;
/* */ import java.util.function.Function;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public interface HttpRequest<R extends HttpRequest>
/* */ {
/* */ R routeParam(String paramString1, String paramString2);
/* */
/* */ R routeParam(Map<String, Object> paramMap);
/* */
/* */ R basicAuth(String paramString1, String paramString2);
/* */
/* */ R accept(String paramString);
/* */
/* */ R responseEncoding(String paramString);
/* */
/* */ R header(String paramString1, String paramString2);
/* */
/* */ R headerReplace(String paramString1, String paramString2);
/* */
/* */ R headers(Map<String, String> paramMap);
/* */
/* */ R headersReplace(Map<String, String> paramMap);
/* */
/* */ R cookie(String paramString1, String paramString2);
/* */
/* */ R cookie(Cookie paramCookie);
/* */
/* */ R cookie(Collection<Cookie> paramCollection);
/* */
/* */ R queryString(String paramString, Object paramObject);
/* */
/* */ R queryString(String paramString, Collection<?> paramCollection);
/* */
/* */ R queryString(Map<String, Object> paramMap);
/* */
/* */ R withObjectMapper(ObjectMapper paramObjectMapper);
/* */
/* */ R connectTimeout(int paramInt);
/* */
/* */ R downloadMonitor(ProgressMonitor paramProgressMonitor);
/* */
/* */ HttpResponse<String> asString();
/* */
/* */ CompletableFuture<HttpResponse<String>> asStringAsync();
/* */
/* */ CompletableFuture<HttpResponse<String>> asStringAsync(Callback<String> paramCallback);
/* */
/* */ HttpResponse<byte[]> asBytes();
/* */
/* */ CompletableFuture<HttpResponse<byte[]>> asBytesAsync();
/* */
/* */ CompletableFuture<HttpResponse<byte[]>> asBytesAsync(Callback<byte[]> paramCallback);
/* */
/* */ HttpResponse<JsonNode> asJson();
/* */
/* */ CompletableFuture<HttpResponse<JsonNode>> asJsonAsync();
/* */
/* */ CompletableFuture<HttpResponse<JsonNode>> asJsonAsync(Callback<JsonNode> paramCallback);
/* */
/* */ <T> HttpResponse<T> asObject(Class<? extends T> paramClass);
/* */
/* */ <T> HttpResponse<T> asObject(GenericType<T> paramGenericType);
/* */
/* */ <T> HttpResponse<T> asObject(Function<RawResponse, T> paramFunction);
/* */
/* */ <T> CompletableFuture<HttpResponse<T>> asObjectAsync(Class<? extends T> paramClass);
/* */
/* */ <T> CompletableFuture<HttpResponse<T>> asObjectAsync(Class<? extends T> paramClass, Callback<T> paramCallback);
/* */
/* */ <T> CompletableFuture<HttpResponse<T>> asObjectAsync(GenericType<T> paramGenericType);
/* */
/* */ <T> CompletableFuture<HttpResponse<T>> asObjectAsync(GenericType<T> paramGenericType, Callback<T> paramCallback);
/* */
/* */ <T> CompletableFuture<HttpResponse<T>> asObjectAsync(Function<RawResponse, T> paramFunction);
/* */
/* */ HttpResponse<File> asFile(String paramString, CopyOption... paramVarArgs);
/* */
/* */ CompletableFuture<HttpResponse<File>> asFileAsync(String paramString, CopyOption... paramVarArgs);
/* */
/* */ CompletableFuture<HttpResponse<File>> asFileAsync(String paramString, Callback<File> paramCallback, CopyOption... paramVarArgs);
/* */
/* */ <T> PagedList<T> asPaged(Function<HttpRequest, HttpResponse> paramFunction, Function<HttpResponse<T>, String> paramFunction1);
/* */
/* */ HttpResponse asEmpty();
/* */
/* */ CompletableFuture<HttpResponse<Empty>> asEmptyAsync();
/* */
/* */ CompletableFuture<HttpResponse<Empty>> asEmptyAsync(Callback<Empty> paramCallback);
/* */
/* */ void thenConsume(Consumer<RawResponse> paramConsumer);
/* */
/* */ void thenConsumeAsync(Consumer<RawResponse> paramConsumer);
/* */
/* */ HttpMethod getHttpMethod();
/* */
/* */ String getUrl();
/* */
/* */ Headers getHeaders();
/* */
/* */ default Optional<Body> getBody() {
/* 408 */ return Optional.empty();
/* */ }
/* */
/* */ int getConnectTimeout();
/* */
/* */ HttpRequestSummary toSummary();
/* */
/* */ Instant getCreationTime();
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\kon\\unirest\cosmetics\HttpRequest.class
* Java compiler version: 11 (55.0)
* JD-Core Version: 1.1.3
*/