Package io.micronaut.views.htmx.http
Class HtmxRequestUtils
java.lang.Object
io.micronaut.views.htmx.http.HtmxRequestUtils
HTMX Request Utils.
- Since:
- 5.2.0
- Author:
- Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isHtmxRequest
(@NonNull io.micronaut.http.HttpRequest<?> request)
-
Method Details
-
isHtmxRequest
public static boolean isHtmxRequest(@NonNull @NonNull io.micronaut.http.HttpRequest<?> request) - Parameters:
request
- HTTP Request- Returns:
- Whether the HTTP Request is an HTMX Request. That it is to say it contains the HX-Request HTTP header.
-