Documentation
¶
Index ¶
- type Request
- func (r *Request) CurrentURL() string
- func (r *Request) IsBoosted() bool
- func (r *Request) IsHTMXRequest() bool
- func (r *Request) IsHistoryRestoreRequest() bool
- func (r *Request) Prompt() string
- func (r *Request) TargetID() string
- func (r *Request) TriggerID() string
- func (r *Request) TriggerName() string
- type Response
- func (r *Response) SetHeaders(w http.ResponseWriter)
- func (r *Response) WithLocation(url string) *Response
- func (r *Response) WithPushURL(url string) *Response
- func (r *Response) WithRedirect(url string) *Response
- func (r *Response) WithRefresh() *Response
- func (r *Response) WithReplaceURL(url string) *Response
- func (r *Response) WithReselect(cssSelector string) *Response
- func (r *Response) WithReswap(m SwapMode) *Response
- func (r *Response) WithRetarget(cssSelector string) *Response
- func (r *Response) WithTrigger(event string) *Response
- func (r *Response) WithTriggerAfterSettle(event string) *Response
- func (r *Response) WithTriggerAfterSwap(event string) *Response
- type SwapMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
https://htmx.org/reference/#Request_headers
func NewRequest ¶
func (*Request) CurrentURL ¶
func (*Request) IsHTMXRequest ¶
func (*Request) IsHistoryRestoreRequest ¶
func (*Request) TriggerName ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
https://htmx.org/reference/#response_headers
func NewResponse ¶
func NewResponse() *Response
func (*Response) SetHeaders ¶
func (r *Response) SetHeaders(w http.ResponseWriter)
func (*Response) WithLocation ¶
func (*Response) WithPushURL ¶
func (*Response) WithRedirect ¶
func (*Response) WithRefresh ¶
func (*Response) WithReplaceURL ¶
func (*Response) WithReselect ¶
func (*Response) WithReswap ¶
func (*Response) WithRetarget ¶
func (*Response) WithTrigger ¶
func (*Response) WithTriggerAfterSettle ¶
func (*Response) WithTriggerAfterSwap ¶
type SwapMode ¶
type SwapMode string
const ( SwapModeInnerHTML SwapMode = "innerHTML" SwapModeOuterHTML SwapMode = "outerHTML" SwapModeBeforebegin SwapMode = "beforebegin" SwapModeAfterbegin SwapMode = "afterbegin" SwapModeBeforeend SwapMode = "beforeend" SwapModeAfterend SwapMode = "afterend" SwapModeDelete SwapMode = "delete" SwapModeNone SwapMode = "none" )
Click to show internal directories.
Click to hide internal directories.