Package io.vertx.mutiny.httpproxy
Class HttpProxy
java.lang.Object
io.vertx.mutiny.httpproxy.HttpProxy
- All Implemented Interfaces:
MutinyDelegate,io.vertx.core.Handler<HttpServerRequest>,Consumer<HttpServerRequest>
public class HttpProxy
extends Object
implements MutinyDelegate, io.vertx.core.Handler<HttpServerRequest>, Consumer<HttpServerRequest>
Handles the HTTP reverse proxy logic between the user agent and the origin.
NOTE: This class has been automatically generated from the
original non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(HttpServerRequest item) addInterceptor(ProxyInterceptor interceptor) booleanio.vertx.httpproxy.HttpProxyvoidhandle(HttpServerRequest request) inthashCode()static HttpProxynewInstance(io.vertx.httpproxy.HttpProxy arg) origin(SocketAddress address) origin(OriginRequestProvider provider) originSelector(Function<HttpServerRequest, io.smallrye.mutiny.Uni<SocketAddress>> selector) Deprecated.static HttpProxyreverseProxy(io.vertx.httpproxy.ProxyOptions options, HttpClient client) static HttpProxyreverseProxy(HttpClient client) toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
HttpProxy
public HttpProxy(io.vertx.httpproxy.HttpProxy delegate) -
HttpProxy
-
-
Method Details
-
getDelegate
public io.vertx.httpproxy.HttpProxy getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
reverseProxy
- Parameters:
client- theHttpClientthat forwards outbound requests to the origin.- Returns:
- a reference to this, so the API can be used fluently.
-
reverseProxy
- Parameters:
options-client- theHttpClientthat forwards outbound requests to the origin.- Returns:
- a reference to this, so the API can be used fluently.
-
origin
- Parameters:
address- theSocketAddressof the origin- Returns:
- a reference to this, so the API can be used fluently
-
origin
- Parameters:
port- the port number of the origin serverhost- the host name of the origin server- Returns:
- a reference to this, so the API can be used fluently
-
originSelector
@Deprecated public HttpProxy originSelector(Function<HttpServerRequest, io.smallrye.mutiny.Uni<SocketAddress>> selector) Deprecated.useorigin(OriginRequestProvider)instead- Parameters:
selector- the selector- Returns:
- a reference to this, so the API can be used fluently
-
origin
- Parameters:
provider- the provider- Returns:
- a reference to this, so the API can be used fluently
-
addInterceptor
- Parameters:
interceptor-- Returns:
- a reference to this, so the API can be used fluently
-
handle
- Specified by:
handlein interfaceio.vertx.core.Handler<HttpServerRequest>- Parameters:
request- the outboundHttpServerRequest
-
accept
- Specified by:
acceptin interfaceConsumer<HttpServerRequest>
-
newInstance
-
origin(OriginRequestProvider)instead