which two create a custom header?

For an HttpServletResponse response, which two create a custom header? (Choose two.)

For an HttpServletResponse response, which two create a custom header? (Choose two.)

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”));

F.
response.setHeader(new ServletHeader(“X-MyHeader”, “34”));

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *