Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<ProxyRequest> |
__TYPE_ARG |
Constructor and Description |
---|
ProxyRequest(Object delegate) |
ProxyRequest(ProxyRequest delegate) |
Modifier and Type | Method and Description |
---|---|
String |
absoluteURI() |
boolean |
equals(Object o) |
HostAndPort |
getAuthority() |
Body |
getBody() |
ProxyRequest |
getDelegate() |
HttpMethod |
getMethod() |
String |
getURI() |
int |
hashCode() |
MultiMap |
headers() |
static ProxyRequest |
newInstance(ProxyRequest arg) |
HttpServerRequest |
proxiedRequest() |
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. |
Completable |
rxProxy(HttpClientRequest request)
Proxy this request to the origin server using the specified
request and then send the proxy response. |
Single<ProxyResponse> |
rxSend(HttpClientRequest request)
Send this request to the origin server using the specified
request . |
Single<ProxyResponse> |
send(HttpClientRequest request)
Send this request to the origin server using the specified
request . |
ProxyRequest |
setAuthority(HostAndPort authority)
Set the request authority
for HTTP/1 the header
for HTTP/2 the pseudo header
The value must follow the syntax.
|
ProxyRequest |
setBody(Body body)
Set the request body to be sent to the origin server.
|
ProxyRequest |
setMethod(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() |
HttpVersion |
version() |
public static final io.vertx.lang.rx.TypeArg<ProxyRequest> __TYPE_ARG
public ProxyRequest(ProxyRequest delegate)
public ProxyRequest(Object delegate)
public ProxyRequest getDelegate()
public static ProxyRequest reverseProxy(HttpServerRequest proxiedRequest)
ProxyRequest
instance, the proxied request will be paused.proxiedRequest
- the HttpServerRequest
that is proxiedpublic HttpVersion version()
public String absoluteURI()
public HttpMethod getMethod()
public ProxyRequest setMethod(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 ProxyRequest setAuthority(HostAndPort authority)
authority
- the authoritypublic HostAndPort getAuthority()
public MultiMap headers()
public Completable proxy(HttpClientRequest request)
request
and then send the proxy response.request
- the request connected to the origin serverpublic Completable rxProxy(HttpClientRequest request)
request
and then send the proxy response.request
- the request connected to the origin serverpublic 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 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(ProxyRequest arg)
Copyright © 2024 Eclipse. All rights reserved.