DefaultFullHttpResponse 中獲取status
private?void?sendHttpResponse(ChannelHandlerContext?ctx,FullHttpRequest?req,DefaultFullHttpResponse?res){ ????if(.code()!=200){ ????????ByteBuf?buf?=?Unpooled.copiedBuffer(res.getStatus().toString(),?CharsetUtil.UTF_8); ????} }
res.getStatus() 會報錯? netty版本是5.0.0的? 換成低版本是可以的 ,但是方法是過時的方法,在新版本中怎么獲取status
2019-03-18
2018-12-25
+1~