Skip to content

Commit

Permalink
Expose the redirect handler on HttpClientInternal
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Sep 23, 2024
1 parent 16189e0 commit 0276999
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.lang.ref.Cleaner;
import java.util.concurrent.TimeUnit;
import java.util.function.BiFunction;
import java.util.function.Function;

/**
* A lightweight proxy of Vert.x {@link HttpClient} that can be collected by the garbage collector and release
Expand Down Expand Up @@ -99,6 +100,11 @@ public Metrics getMetrics() {
return delegate.getMetrics();
}

@Override
public Function<HttpClientResponse, Future<RequestOptions>> redirectHandler() {
return delegate.redirectHandler();
}

@Override
public NetClientInternal netClient() {
return delegate.netClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
import io.vertx.core.internal.net.NetClientInternal;
import io.vertx.core.spi.metrics.MetricsProvider;

import java.util.function.Function;

/**
* Http client internal API.
*/
Expand All @@ -28,6 +30,8 @@ public interface HttpClientInternal extends HttpClientAgent, MetricsProvider, Cl
*/
VertxInternal vertx();

Function<HttpClientResponse, Future<RequestOptions>> redirectHandler();

HttpClientOptions options();

NetClientInternal netClient();
Expand Down

0 comments on commit 0276999

Please sign in to comment.