···15 w.Write([]byte(html))
16}
1700000018// HxRedirect is a full page reload with a new location.
19func (s *Pages) HxRedirect(w http.ResponseWriter, location string) {
20 w.Header().Set("HX-Redirect", location)
···15 w.Write([]byte(html))
16}
1718+// HxRefresh is a client-side full refresh of the page.
19+func (s *Pages) HxRefresh(w http.ResponseWriter) {
20+ w.Header().Set("HX-Refresh", "true")
21+ w.WriteHeader(http.StatusOK)
22+}
23+24// HxRedirect is a full page reload with a new location.
25func (s *Pages) HxRedirect(w http.ResponseWriter, location string) {
26 w.Header().Set("HX-Redirect", location)