Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeaderBoosted = "HX-Boosted" HeaderHistoryRestoreRequest = "HX-History-Restore-Request" HeaderPrompt = "HX-Prompt" HeaderRequest = "HX-Request" HeaderTarget = "HX-Target" HeaderTrigger = "HX-Trigger" HeaderTriggerName = "HX-Trigger-Name" )
Request headers: https://htmx.org/docs/#request-headers
View Source
const ( HeaderPushURL = "HX-Push-Url" HeaderRedirect = "HX-Redirect" HeaderReplaceURL = "HX-Replace-Url" HeaderRefresh = "HX-Refresh" HeaderTriggerAfterSettle = "HX-Trigger-After-Settle" HeaderTriggerAfterSwap = "HX-Trigger-After-Swap" )
Response headers: https://htmx.org/docs/#response-headers
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { Enabled bool Boosted bool HistoryRestore 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.