For an HttpServletResponse response,which two create a custom header?()
- A、response.setHeader("X-MyHeader", "34");
- B、response.addHeader("X-MyHeader", "34");
- C、response.setHeader(new HttpHeader("X-MyHeader", "34"));
- D、response.addHeader(new HttpHeader("X-MyHeader", "34"));
- E、response.addHeader(new ServletHeader("X-MyHeader", "34"));
正确答案:A,B
答案解析:有
微信扫一扫手机做题