public interface ProxyResponse
| Modifier and Type | Method and Description |
|---|---|
ProxyResponse |
bodyFilter(java.util.function.Function<ReadStream<Buffer>,ReadStream<Buffer>> filter)
Set a body filter.
|
String |
etag() |
Body |
getBody()
Get the body of the response.
|
int |
getStatusCode()
Get the status code.
|
String |
getStatusMessage()
Get the status message.
|
MultiMap |
headers() |
long |
maxAge() |
boolean |
publicCacheControl() |
ProxyResponse |
putHeader(CharSequence name,
CharSequence value)
Put an HTTP header.
|
ProxyResponse |
release()
Release the proxy response.
|
ProxyRequest |
request()
Return the corresponding
ProxyRequest. |
Future<Void> |
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.
|
ProxyRequest request()
ProxyRequest.int getStatusCode()
ProxyResponse setStatusCode(int sc)
The initial value is the inbound response status code.
sc - the status codeString getStatusMessage()
ProxyResponse setStatusMessage(String statusMessage)
The initial value is the inbound response status message.
statusMessage - the status messageMultiMap headers()
ProxyResponse putHeader(CharSequence name, CharSequence value)
name - The header namevalue - The header valueBody getBody()
ProxyResponse setBody(Body body)
The initial request body value is the outbound response body.
body - the new bodyProxyResponse bodyFilter(java.util.function.Function<ReadStream<Buffer>,ReadStream<Buffer>> filter)
The body filter can rewrite the response body sent to the user agent.
filter - the filterboolean publicCacheControl()
long maxAge()
String etag()
etag sent by the origin responseProxyResponse release()
The HTTP client inbound response is resumed, no HTTP inbound server response is sent.
Copyright © 2021 Eclipse. All rights reserved.