Documentation ¶
Index ¶
- Variables
- func Custom(opts *Options) func(next http.Handler) http.Handler
- func ServeContent(w http.ResponseWriter, req *http.Request, fi os.FileInfo, modtime time.Time, ...)
- func Static(opts *Options) func(next http.Handler) http.Handler
- func StaticHandler(dir string, opts *Options) func(next http.Handler) http.Handler
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var KnownPublicEntries = []string{
"css",
"img",
"js",
"serviceworker.js",
"vendor",
"favicon.ico",
}
KnownPublicEntries list all direct children in the `public` directory
Functions ¶
func ServeContent ¶
func ServeContent(w http.ResponseWriter, req *http.Request, fi os.FileInfo, modtime time.Time, content io.ReadSeeker)
ServeContent serve http content
Types ¶
Click to show internal directories.
Click to hide internal directories.