Documentation ¶ Index ¶ type CacheMode type Static func (s *Static) DeployPage(handler http.Handler) http.Handler func (st *Static) ErrorPagesUnless(disabled bool, handler http.Handler) http.Handler func (s *Static) ServeExisting(prefix urlprefix.Prefix, cache CacheMode, notFoundHandler http.Handler) http.Handler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type CacheMode ¶ type CacheMode int const ( CacheDisabled CacheMode = iota CacheExpireMax ) type Static ¶ type Static struct { DocumentRoot string } func (*Static) DeployPage ¶ func (s *Static) DeployPage(handler http.Handler) http.Handler func (*Static) ErrorPagesUnless ¶ func (st *Static) ErrorPagesUnless(disabled bool, handler http.Handler) http.Handler func (*Static) ServeExisting ¶ func (s *Static) ServeExisting(prefix urlprefix.Prefix, cache CacheMode, notFoundHandler http.Handler) http.Handler BUG/QUIRK: If a client requests 'foo%2Fbar' and 'foo/bar' exists, handleServeFile will serve foo/bar instead of passing the request upstream. Source Files ¶ View all Source files deploy_page.go error_pages.go servefile.go static.go Click to show internal directories. Click to hide internal directories.