Close
« Tutorial

Spring MVC - HTTP HEAD and OPTIONS Support MCQ

0/13
0 ✓
0 ✗

1. What does an HTTP HEAD request return?

2. Starting from which Spring version is the built-in support for HEAD and OPTIONS available?

3. A URL already has a handler method for GET. Do you need to write a separate handler method for HEAD?

4. What does Spring do when a HEAD request arrives for a URL mapped to a GET handler?

5. When an OPTIONS request arrives, which response header does Spring set to list the supported HTTP methods?

6. A URL has no explicitly declared HTTP methods. What is the default value of the Allow header for an OPTIONS request?

7. A URL is mapped only for GET. What will the Allow header contain for an OPTIONS request?

8. Why does HEAD appear in the Allow header when only GET was declared?

9. Are your controller handler methods called when an OPTIONS request is handled by Spring's built-in support?

10. For the implicit OPTIONS support to give a correct Allow header, what should each handler method for the URL do?

11. Which curl option sends an HTTP HEAD request?

Join