HttpServerCodec和HttpObjectAggregator如何解析Http協議

1、首先開始看HttpServerCodec 可以看到他繼承了ChannelHandlerAppender,並且創建了一個HttpRequestDecode和一個HttpResponseEncoder。 Appender內部有一個Entry的list按順序存放這兩個編碼解碼器 ps:在initchannelhandler時,添加的是HttpServerCode,查看addLast方法代碼,也沒有發
相關文章
相關標籤/搜索