Skip to content

Commit 935b290

Browse files
authored
fix: expose http transport for custom requests (#760)
1 parent 645678f commit 935b290

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

algoliasearch-core/src/main/java/com/algolia/search/HttpTransport.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/**
2424
* The transport layer is responsible of the serialization/deserialization and the retry strategy.
2525
*/
26-
class HttpTransport {
26+
public class HttpTransport {
2727

2828
private final HttpRequester httpRequester;
2929
private final RetryStrategy retryStrategy;
@@ -53,7 +53,7 @@ void close() throws IOException {
5353
* @throws AlgoliaApiException When the API sends an error
5454
* @throws AlgoliaRuntimeException When an error occurred during the serialization.
5555
*/
56-
<TResult> CompletableFuture<TResult> executeRequestAsync(
56+
public <TResult> CompletableFuture<TResult> executeRequestAsync(
5757
@Nonnull HttpMethod method,
5858
@Nonnull String path,
5959
@Nonnull CallType callType,
@@ -78,7 +78,7 @@ <TResult> CompletableFuture<TResult> executeRequestAsync(
7878
* @throws AlgoliaApiException When the API sends an error
7979
* @throws AlgoliaRuntimeException When an error occurred during the serialization.
8080
*/
81-
<TResult, TData> CompletableFuture<TResult> executeRequestAsync(
81+
public <TResult, TData> CompletableFuture<TResult> executeRequestAsync(
8282
@Nonnull HttpMethod method,
8383
@Nonnull String path,
8484
@Nonnull CallType callType,
@@ -105,7 +105,7 @@ <TResult, TData> CompletableFuture<TResult> executeRequestAsync(
105105
* @throws AlgoliaApiException When the API sends an error
106106
* @throws AlgoliaRuntimeException When an error occurred during the serialization.
107107
*/
108-
<TResult, TInnerResult, TData> CompletableFuture<TResult> executeRequestAsync(
108+
public <TResult, TInnerResult, TData> CompletableFuture<TResult> executeRequestAsync(
109109
@Nonnull HttpMethod method,
110110
@Nonnull String path,
111111
@Nonnull CallType callType,

0 commit comments

Comments
 (0)