Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeaderRequest = "HX-Request" HeaderBoosted = "HX-Boosted" HeaderTrigger = "HX-Trigger" HeaderTriggerName = "HX-Trigger-Name" HeaderTriggerAfterSwap = "HX-Trigger-After-Swap" HeaderTriggerAfterSettle = "HX-Trigger-After-Settle" HeaderTarget = "HX-Target" HeaderPrompt = "HX-Prompt" HeaderPush = "HX-Push" HeaderRedirect = "HX-Redirect" HeaderRefresh = "HX-Refresh" )
Headers (https://htmx.org/docs/#requests)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { Enabled bool Boosted bool Trigger string TriggerName string Target string Prompt string }
Request contains data that HTMX provides during requests
func GetRequest ¶
func GetRequest(ctx echo.Context) Request
GetRequest extracts HTMX data from the request
Click to show internal directories.
Click to hide internal directories.