Constructor and Description |
---|
HttpProxyImpl(java.lang.String deploymentID,
ProxyOptions options,
io.vertx.core.http.HttpClient client) |
Modifier and Type | Method and Description |
---|---|
void |
handle(io.vertx.core.http.HttpServerRequest outboundRequest)
Handle the outbound
HttpServerRequest . |
HttpProxy |
originSelector(java.util.function.Function<HttpServerRequestContext,io.vertx.core.Future<CloseableSession>> selector)
Set a selector that resolves the origin address based on the
outbound request.
|
HttpProxy |
responseHook(java.util.function.BiConsumer<HttpServerRequestContext,ProxyResponse> responseHook) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
origin, origin, reverseProxy, reverseProxy
public HttpProxyImpl(java.lang.String deploymentID, ProxyOptions options, io.vertx.core.http.HttpClient client)
public HttpProxy originSelector(java.util.function.Function<HttpServerRequestContext,io.vertx.core.Future<CloseableSession>> selector)
HttpProxy
originSelector
in interface HttpProxy
selector
- the selectorpublic HttpProxy responseHook(java.util.function.BiConsumer<HttpServerRequestContext,ProxyResponse> responseHook)
responseHook
in interface HttpProxy
public void handle(io.vertx.core.http.HttpServerRequest outboundRequest)
HttpProxy
HttpServerRequest
.Copyright © 2023. All Rights Reserved.