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 TypeMethodDescriptionvoid
accept
(HttpServerRequest item) addInterceptor
(ProxyInterceptor interceptor) boolean
io.vertx.httpproxy.HttpProxy
void
handle
(HttpServerRequest request) int
hashCode()
static HttpProxy
newInstance
(io.vertx.httpproxy.HttpProxy arg) origin
(SocketAddress address) originSelector
(Function<HttpServerRequest, io.smallrye.mutiny.Uni<SocketAddress>> selector) static HttpProxy
reverseProxy
(io.vertx.httpproxy.ProxyOptions options, HttpClient client) static HttpProxy
reverseProxy
(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:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
reverseProxy
- Parameters:
client
- theHttpClient
that forwards outbound requests to the origin.- Returns:
- a reference to this, so the API can be used fluently.
-
reverseProxy
- Parameters:
options
-client
- theHttpClient
that forwards outbound requests to the origin.- Returns:
- a reference to this, so the API can be used fluently.
-
origin
- Parameters:
address
- theSocketAddress
of 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
public HttpProxy originSelector(Function<HttpServerRequest, io.smallrye.mutiny.Uni<SocketAddress>> selector) - Parameters:
selector
- the selector- 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:
handle
in interfaceio.vertx.core.Handler<HttpServerRequest>
- Parameters:
request
- the outboundHttpServerRequest
-
accept
- Specified by:
accept
in interfaceConsumer<HttpServerRequest>
-
newInstance
-