Package-level declarations

Types

Link copied to clipboard
value class HXRequestHeaders(headers: Headers)

Typed accessors for the HTMX request headers sent by the htmx.org client library.

Link copied to clipboard

Typed accessors for setting the HTMX response headers understood by the htmx.org client library.

Link copied to clipboard
value class HxRoute : Route

Provides custom routes based on common HTMX headers.

Properties

Link copied to clipboard

Property for scoping routes to HTMX (e.g., hx.get { ... }

Provides typed access to the HTMX request headers of this request.

Provides typed access to the HTMX response headers that will be sent with this response.

Link copied to clipboard

Whether this request was made by htmx, i.e. the HX-Request header is set to true.

Functions

Link copied to clipboard
fun Route.hx(configuration: HxRoute.() -> Unit): Route

Scope child routes to apply when HX-Request header is supplied.