caddystaticpwa

package
v0.15.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2022 License: AGPL-3.0-only Imports: 15 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL