Sections

@calvinbonner/minifw API Reference

Version 0.2.1

helpers/is-htmx

function isHtmx

isHtmx(request: Request): boolean

Checks if the request is an HTMX request by looking for the "HX-Request" header.

request

The incoming request object.

Returns:

true if the request is an HTMX request, otherwise false.