官网上给的 demo 里 req,resp 两个对象都被封装进了 HttpServerExchange 对象里,用起来很不习惯
我用下面这种方法获取的对象是 null
ServletRequestContext attachment = exchange.getAttachment(ServletRequestContext.ATTACHMENT_KEY);
请问怎么获取 servlet 规范里的 HttpServletRequest,HttpServletResponse 对象呢?