Class ExplicitHeadRouteTest
java.lang.Object
io.micronaut.http.server.tck.tests.ExplicitHeadRouteTest
A
@Get mapping also registers an implicit HEAD route, so that a plain GET
handler answers HEAD requests too. When a controller additionally declares an explicit
@Head route for the same URI, both routes match a HEAD request with identical
specificity, and the request used to be rejected as ambiguous with a 400.
The explicit declaration wins that tie. The implicit route is still registered, so a
HEAD request that earlier stages of resolution - such as content negotiation - can
attribute to the @Get route keeps reaching it.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SPEC_NAME
- See Also:
-
-
Constructor Details
-
ExplicitHeadRouteTest
public ExplicitHeadRouteTest()
-