staticpages

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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