Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<ProxyResponse> |
__TYPE_ARG |
Constructor and Description |
---|
ProxyResponse(Object delegate) |
ProxyResponse(ProxyResponse delegate) |
Modifier and Type | Method and Description |
---|---|
ProxyResponse |
bodyFilter(java.util.function.Function<ReadStream<Buffer>,Flowable<Buffer>> filter)
Set a body filter.
|
boolean |
equals(Object o) |
String |
etag() |
Body |
getBody()
Get the body of the response.
|
ProxyResponse |
getDelegate() |
int |
getStatusCode()
Get the status code.
|
String |
getStatusMessage()
Get the status message.
|
int |
hashCode() |
MultiMap |
headers() |
long |
maxAge() |
static ProxyResponse |
newInstance(ProxyResponse arg) |
boolean |
publicCacheControl() |
ProxyResponse |
release()
Release the proxy response.
|
ProxyRequest |
request()
Return the corresponding
ProxyRequest . |
Completable |
rxSend()
Send the proxy response to the user agent.
|
Completable |
send()
Send the proxy response to the user agent.
|
ProxyResponse |
setBody(Body body)
Set the request body to be sent to the user agent.
|
ProxyResponse |
setStatusCode(int sc)
Set the status code to be sent to the user agent.
|
ProxyResponse |
setStatusMessage(String statusMessage)
Set the status message to be sent to the user agent.
|
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<ProxyResponse> __TYPE_ARG
public ProxyResponse(ProxyResponse delegate)
public ProxyResponse(Object delegate)
public ProxyResponse getDelegate()
public ProxyRequest request()
ProxyRequest
.public int getStatusCode()
public ProxyResponse setStatusCode(int sc)
The initial value is the inbound response status code.
sc
- the status codepublic String getStatusMessage()
public ProxyResponse setStatusMessage(String statusMessage)
The initial value is the inbound response status message.
statusMessage
- the status messagepublic MultiMap headers()
public Body getBody()
public ProxyResponse setBody(Body body)
The initial request body value is the outbound response body.
body
- the new bodypublic ProxyResponse bodyFilter(java.util.function.Function<ReadStream<Buffer>,Flowable<Buffer>> filter)
The body filter can rewrite the response body sent to the user agent.
filter
- the filterpublic boolean publicCacheControl()
public long maxAge()
public String etag()
etag
sent by the origin responsepublic Completable send()
public Completable rxSend()
public ProxyResponse release()
The HTTP client inbound response is resumed, no HTTP inbound server response is sent.
public static ProxyResponse newInstance(ProxyResponse arg)
Copyright © 2021 Eclipse. All rights reserved.