isHtmx property

bool get isHtmx

Whether htmx sent the request (HX-Request: true).

Implementation

bool get isHtmx => header('hx-request') == 'true';