public interface ResponseFilter
Modifier and Type | Method and Description |
---|---|
void |
filterResponse(io.netty.handler.codec.http.HttpResponse response,
HttpMessageContents contents,
HttpMessageInfo messageInfo)
Implement this method to filter an HTTP response.
|
void filterResponse(io.netty.handler.codec.http.HttpResponse response, HttpMessageContents contents, HttpMessageInfo messageInfo)
response
parameter,
while the contents of the message are available in the contents
parameter. The response can be modified directly, while the
contents may be modified using the HttpMessageContents.setTextContents(String)
or HttpMessageContents.setBinaryContents(byte[])
methods.response
- The response object, including URI, headers, status line, etc. Modifications to the response object will be reflected in the client response.contents
- The response contents.messageInfo
- Additional information relating to the HTTP message.Copyright © 2016. All Rights Reserved.