blob: c4120f3d7de8795ff591134274b03b4b61aa9846 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
package utils
import "github.com/labstack/echo/v4"
func IsHTMX(c echo.Context) bool {
return c.Request().Header.Get("HX-Request") == "true"
}
func HTMXRedirect(c echo.Context, location string) {
c.Response().Header().Set("HX-Redirect", location)
}
|