Request
- HX-Request - indicates request was made by htmx
- HX-Request-Type - indicates
partialorfullpage request - HX-Current-URL - contains browser URL when request started
- HX-Source - identifies element that triggered the request
- HX-Target - identifies element that will receive response
- HX-Boosted - indicates boosted navigation request
- HX-History-Restore-Request - indicates history navigation (back/forward)
Response
- HX-Trigger - triggers client-side events with
htmx.trigger() - HX-Location - redirect without a full page load
- HX-Redirect - redirects by setting
location.href - HX-Refresh - reloads page with
location.reload() - HX-Retarget - overrides swap target from server
- HX-Reswap - overrides swap style from server
- HX-Reselect - overrides content selection from server
- HX-Replace-Url - replaces current URL in browser history
- HX-Push-Url - pushes URL into browser history stack