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 |
---|---|
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 proxies response to the user agent.
|
Completable |
send()
Send the proxies 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 proxied response status code.
sc
- the status codepublic String getStatusMessage()
public ProxyResponse setStatusMessage(String statusMessage)
The initial value is the proxied response status message.
statusMessage
- the status messagepublic MultiMap headers()
public Body getBody()
public ProxyResponse setBody(Body body)
The initial request body value is the proxied response body.
body
- the new bodypublic boolean publicCacheControl()
public long maxAge()
public String etag()
etag
sent by the origin responsepublic Completable send()
public Completable rxSend()
public ProxyResponse release()
The proxied response is resumed, no HTTP response is sent to the user-agent
public static ProxyResponse newInstance(ProxyResponse arg)
Copyright © 2023 Eclipse. All rights reserved.