Which two retrieve the value of the header from a given HttpServletRequest request?

Given a header in an HTTP request:
X-Retries: 4
Which two retrieve the value of the header from a given HttpServletRequest request? (Choose
two.)

Given a header in an HTTP request:
X-Retries: 4
Which two retrieve the value of the header from a given HttpServletRequest request? (Choose
two.)

A.
request.getHeader(“X-Retries”)

B.
request.getIntHeader(“X-Retries”)

C.
request.getRequestHeader(“X-Retries”)

D.
request.getHeaders(“X-Retries”).get(0)

E.
request.getRequestHeaders(“X-Retries”).get(0)

Explanation:



Leave a Reply 0

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