Interface HandshakeInterceptor

  • All Superinterfaces:
    Function<io.netty.handler.codec.http.FullHttpRequest,​io.netty.handler.codec.http.FullHttpRequest>, UnaryOperator<io.netty.handler.codec.http.FullHttpRequest>

    public interface HandshakeInterceptor
    extends UnaryOperator<io.netty.handler.codec.http.FullHttpRequest>
    This function is called when the websocket handshake is attempted and the first FullHttpRequest is sent to the server. The interceptor allows this message to be modified as needed before it is sent to the server. Implementations are supplied to Cluster.Builder.handshakeInterceptor(HandshakeInterceptor).