Res

object Res(source)

Constants for all HTMX HTTP response headers.

See HTTP Header Reference.

Properties

Link copied to clipboard
const val location: String

allows you to do a client-side redirect that does not do a full page reload

Link copied to clipboard
const val pushUrl: String

pushes a new url into the history stack

Link copied to clipboard
const val redirect: String

can be used to do a client-side redirect to a new location

Link copied to clipboard
const val refresh: String

if set to “true” the client-side will do a full refresh of the page

Link copied to clipboard
const val replaceUrl: String

replaces the current URL in the location bar

Link copied to clipboard
const val reselect: String

a CSS selector that allows you to choose which part of the response is used to be swapped in. Overrides an existing hx-select on the triggering element

Link copied to clipboard
const val reswap: String

allows you to specify how the response will be swapped. See hx-swap for possible values

Link copied to clipboard
const val retarget: String

a CSS selector that updates the target of the content update to a different element on the page

Link copied to clipboard
const val trigger: String

allows you to trigger client-side events

Link copied to clipboard

allows you to trigger client-side events after the settle step

Link copied to clipboard

allows you to trigger client-side events after the swap step