public interface RequestFilter
Modifier and Type | Method and Description |
---|---|
io.netty.handler.codec.http.HttpResponse |
filterRequest(io.netty.handler.codec.http.HttpRequest request,
HttpMessageContents contents,
HttpMessageInfo messageInfo)
Implement this method to filter an HTTP request.
|
io.netty.handler.codec.http.HttpResponse filterRequest(io.netty.handler.codec.http.HttpRequest request, HttpMessageContents contents, HttpMessageInfo messageInfo)
request
parameter,
while the contents of the message are available in the contents
parameter. The request can be modified directly, while the
contents may be modified using the HttpMessageContents.setTextContents(String)
or HttpMessageContents.setBinaryContents(byte[])
methods. The request can be "short-circuited" by returning a non-null value.request
- The request object, including method, URI, headers, etc. Modifications to the request object will be reflected in the request sent to the server.contents
- The request contents.messageInfo
- Additional information relating to the HTTP message.Copyright © 2016. All Rights Reserved.