Interface RequestInterceptor
-
- All Superinterfaces:
Function<io.netty.handler.codec.http.FullHttpRequest,io.netty.handler.codec.http.FullHttpRequest>
,UnaryOperator<io.netty.handler.codec.http.FullHttpRequest>
public interface RequestInterceptor extends UnaryOperator<io.netty.handler.codec.http.FullHttpRequest>
This function is called aFullHttpRequest
constructed and allow it to be modified as needed before it is sent to the server. Implementations are supplied toCluster.Builder.requestInterceptor(RequestInterceptor)
. When this method is called is dependent on theChannelizer
implementation.
-
-
Field Summary
Fields Modifier and Type Field Description static RequestInterceptor
NO_OP
The default implementation of aRequestInterceptor
and behaves as a no-op.
-
-
-
Field Detail
-
NO_OP
static final RequestInterceptor NO_OP
The default implementation of aRequestInterceptor
and behaves as a no-op.
-
-