Given:
What will be the response to a HEAD request?
Given:
What will be the response to a HEAD request?
For a HEAD request, if a corresponding GET method is defined in the resource class, it will usually be called to generate the response headers, but the response body will not be included. Here, the findAll() method will be called, but no employees will be returned in the response body.
correctanswer is B
B is the correct answer
Answer B. HEAD by default invokes the implemented GET method (if present) and ignores the response entity (if set). This method can be used for obtaining metadata about the entity implied by the request without transferring the entity-body itself.