聊聊reactor-netty的AccessLogHandlerH2
序 本文主要研究一下reactor-netty的AccessLogHandlerH2 AccessLogHandlerH2 reactor-netty-0.8.5.RELEASE-sources.jar!/reactor/netty/http/server/AccessLogHandlerH2.java final class AccessLogHandlerH2 extends ChannelDuplexHandler { static final String H2_PROTOCOL_NAME = "HTTP/2.0"; AccessLog accessLog = new AccessLog(); @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { if (msg instanceof Http2HeadersFrame){ final Http2HeadersFrame requestHeaders = (Http2HeadersFrame) msg; final SocketChannel channel = (SocketChannel) ctx.channel() .parent(); final Http2Headers headers