Package ai.fal.client.http
Class HttpClient
java.lang.Object
ai.fal.client.http.HttpClient
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionokhttp3.Response
executeRequest
(okhttp3.Request request) CompletableFuture
<okhttp3.Response> executeRequestAsync
(okhttp3.Request request) <T> T
<T> T
okhttp3.OkHttpClient
<T> T
handleResponse
(okhttp3.Response response, Class<T> resultType) okhttp3.Request
prepareRequest
(String url, ApiOptions options) okhttp3.Request
prepareRequest
(String url, ApiOptions options, Map<String, Object> queryParams) responseToException
(okhttp3.Response response) <T> Output
<T> wrapInResult
(okhttp3.Response response, Class<T> resultType)
-
Constructor Details
-
HttpClient
-
-
Method Details
-
prepareRequest
-
prepareRequest
@Nonnull public okhttp3.Request prepareRequest(@Nonnull String url, @Nonnull ApiOptions options, @Nonnull Map<String, Object> queryParams) -
executeRequest
public okhttp3.Response executeRequest(okhttp3.Request request) -
executeRequestAsync
-
handleResponse
-
responseToException
-
wrapInResult
-
fromJson
-
fromJson
-
getUnderlyingClient
public okhttp3.OkHttpClient getUnderlyingClient()
-