Req

object Req(source)

Constants for all HTMX HTTP request headers.

See HTTP Header Reference.

Properties

Link copied to clipboard
const val boosted: String

indicates that the request is via an element using hx-boost

Link copied to clipboard
const val currentUrl: String

the current URL of the browser

Link copied to clipboard

“true” if the request is for history restoration after a miss in the local history cache

Link copied to clipboard
const val prompt: String

the user response to an hx-prompt

Link copied to clipboard
const val request: String

always “true”

Link copied to clipboard
const val target: String

the id of the target element if it exists

Link copied to clipboard
const val trigger: String

the id of the triggered element if it exists

Link copied to clipboard
const val triggerName: String

the name of the triggered element if it exists