Package com.algolia.search
Interface HttpRequester
-
public interface HttpRequesterThis contract allows you to inject a custom HTTPClient to any Algolia clients of the library.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the underlying resources.CompletableFuture<HttpResponse>performRequestAsync(HttpRequest request)Perform an asynchronous request to the Algolia API.
-
-
-
Method Detail
-
performRequestAsync
CompletableFuture<HttpResponse> performRequestAsync(HttpRequest request)
Perform an asynchronous request to the Algolia API.- Parameters:
request- TheHttpRequestto send.- Returns:
- A completable future of a
HttpResponse.
-
close
void close() throws IOExceptionCloses the underlying resources.- Throws:
IOException
-
-