public class ProxyRequest extends Object
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static TypeArg<ProxyRequest> |
__TYPE_ARG |
| Constructor and Description |
|---|
ProxyRequest(Object delegate) |
ProxyRequest(io.vertx.httpproxy.ProxyRequest delegate) |
| Modifier and Type | Method and Description |
|---|---|
String |
absoluteURI() |
boolean |
equals(Object o) |
Body |
getBody() |
io.vertx.httpproxy.ProxyRequest |
getDelegate() |
io.vertx.core.http.HttpMethod |
getMethod() |
String |
getURI() |
int |
hashCode() |
MultiMap |
headers() |
static ProxyRequest |
newInstance(io.vertx.httpproxy.ProxyRequest arg) |
HttpServerRequest |
proxiedRequest() |
io.reactivex.rxjava3.core.Completable |
proxy(HttpClientRequest request)
Proxy this request to the origin server using the specified
request and then send the proxy response. |
ProxyRequest |
release()
Release the proxy request and its associated resources
|
ProxyResponse |
response()
Create and return the proxy response.
|
static ProxyRequest |
reverseProxy(HttpServerRequest proxiedRequest)
Create a new
ProxyRequest instance, the proxied request will be paused. |
io.reactivex.rxjava3.core.Completable |
rxProxy(HttpClientRequest request)
Proxy this request to the origin server using the specified
request and then send the proxy response. |
io.reactivex.rxjava3.core.Single<ProxyResponse> |
rxSend(HttpClientRequest request)
Send this request to the origin server using the specified
request. |
io.reactivex.rxjava3.core.Single<ProxyResponse> |
send(HttpClientRequest request)
Send this request to the origin server using the specified
request. |
ProxyRequest |
setBody(Body body)
Set the request body to be sent to the origin server.
|
ProxyRequest |
setMethod(io.vertx.core.http.HttpMethod method)
Set the HTTP method to be sent to the origin server.
|
ProxyRequest |
setURI(String uri)
Set the request URI to be sent to the origin server.
|
String |
toString() |
io.vertx.core.http.HttpVersion |
version() |
public static final TypeArg<ProxyRequest> __TYPE_ARG
public ProxyRequest(io.vertx.httpproxy.ProxyRequest delegate)
public ProxyRequest(Object delegate)
public io.vertx.httpproxy.ProxyRequest getDelegate()
public static ProxyRequest reverseProxy(HttpServerRequest proxiedRequest)
ProxyRequest instance, the proxied request will be paused.proxiedRequest - the HttpServerRequest that is proxiedpublic io.vertx.core.http.HttpVersion version()
public String absoluteURI()
public io.vertx.core.http.HttpMethod getMethod()
public ProxyRequest setMethod(io.vertx.core.http.HttpMethod method)
The initial HTTP method value is the proxied request HTTP method.
method - the new HTTP methodpublic String getURI()
public ProxyRequest setURI(String uri)
The initial request URI value is the proxied request URI.
uri - the new URIpublic Body getBody()
public ProxyRequest setBody(Body body)
The initial request body value is the proxied request body.
body - the new bodypublic MultiMap headers()
public io.reactivex.rxjava3.core.Completable proxy(HttpClientRequest request)
request and then send the proxy response.request - the request connected to the origin serverpublic io.reactivex.rxjava3.core.Completable rxProxy(HttpClientRequest request)
request and then send the proxy response.request - the request connected to the origin serverpublic io.reactivex.rxjava3.core.Single<ProxyResponse> send(HttpClientRequest request)
request.
The returned future will be completed with the proxy response returned by the origin.
request - the request connected to the origin serverpublic io.reactivex.rxjava3.core.Single<ProxyResponse> rxSend(HttpClientRequest request)
request.
The returned future will be completed with the proxy response returned by the origin.
request - the request connected to the origin serverpublic ProxyRequest release()
The HTTP server request is resumed, no HTTP server response is sent.
public HttpServerRequest proxiedRequest()
public ProxyResponse response()
public static ProxyRequest newInstance(io.vertx.httpproxy.ProxyRequest arg)
Copyright © 2022 Eclipse. All rights reserved.