Class HtmxRequestUtils

java.lang.Object
io.micronaut.views.htmx.http.HtmxRequestUtils

public final class HtmxRequestUtils extends Object
HTMX Request Utils.
Since:
5.2.0
Author:
Sergio del Amo
  • 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.