# Functions
No description provided by the author
Redirect determines if the request is an HTMX request, if so, it sets the HX-Redirect header and returns a 204 no content to allow HTMX to handle the redirect.
Trigger sets the HX-Trigger response header and returns a 204 no content to allow HTMX to handle the trigger.
# Constants
indicates that the request is via an element using hx-boost.
the current URL of the browser.
“true” if the request is for history restoration after a miss in the local history cache.
allows you to do a client-side redirect that does not do a full page reload.
the user response to an hx-prompt.
pushes a new url into the history stack.
can be used to do a client-side redirect to a new location.
if set to “true” the client-side will do a full refresh of the page.
replaces the current URL in the location bar.
always “true”.
a CSS selector that allows you to choose which part of the response is used to be swapped in.
allows you to specify how the response will be swapped.
a CSS selector that updates the target of the content update to a different element on the page.
the id of the target element if it exists.
the id of the triggered element if it exists in requests, allows you to trigger client-side events in responses.
allows you to trigger client-side events after the settle step.
allows you to trigger client-side events after the swap step.
the name of the triggered element if it exists.