Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticPWAHandler ¶
type StaticPWAHandler struct { IndexCSPTemplate string StaticDefaultCSP string StaticSVGCSP string Next httpserver.Handler // contains filtered or unexported fields }
StaticPWAHandler is a handler for static progressive webapps.
func NewStaticPWAHandler ¶
func NewStaticPWAHandler(host, root, name, appURL, path string, next httpserver.Handler) *StaticPWAHandler
NewStaticPWAHandler creates a new StaticPWAHandler with the provided options.
func (*StaticPWAHandler) ServeHTTP ¶
func (h *StaticPWAHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)
Click to show internal directories.
Click to hide internal directories.