func()

in internal/httphandler/httphandler.go [69:76]


func (s *Handler) StaticHandler() http.HandlerFunc {
	h := http.FileServer(s.StaticRoot)
	return func(w http.ResponseWriter, r *http.Request) {
		// TODO: add HTST header to static files.
		// addHTSTHeader(w)
		h.ServeHTTP(w, r)
	}
}