Constructor and Description |
---|
HttpProxyImpl(io.vertx.core.http.HttpClient client) |
Modifier and Type | Method and Description |
---|---|
void |
handle(io.vertx.core.http.HttpServerRequest request) |
ProxyRequest |
proxy(io.vertx.core.http.HttpServerRequest request,
io.vertx.core.net.SocketAddress target) |
HttpProxy |
responseHook(java.util.function.BiConsumer<HttpServerRequestContext,ProxyResponse> responseHook) |
HttpProxy |
selector(java.util.function.Function<HttpServerRequestContext,io.vertx.core.Future<io.vertx.core.net.SocketAddress>> selector) |
HttpProxy |
target(int port,
java.lang.String host) |
HttpProxy |
target(io.vertx.core.net.SocketAddress address) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reverseProxy
public HttpProxy target(int port, java.lang.String host)
public HttpProxy target(io.vertx.core.net.SocketAddress address)
public HttpProxy selector(java.util.function.Function<HttpServerRequestContext,io.vertx.core.Future<io.vertx.core.net.SocketAddress>> selector)
public HttpProxy responseHook(java.util.function.BiConsumer<HttpServerRequestContext,ProxyResponse> responseHook)
responseHook
in interface HttpProxy
public ProxyRequest proxy(io.vertx.core.http.HttpServerRequest request, io.vertx.core.net.SocketAddress target)
Copyright © 2022. All Rights Reserved.