Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StandardFileServer ¶
type StandardFileServer struct { Next http.Handler // No Next, this is the bottom of the stack. Paths []string Root []string StripPrefix []string IndexFileList []string LineNo int }
func NewStandardFileServer ¶
func (*StandardFileServer) ServeHTTP ¶
func (hdlr *StandardFileServer) ServeHTTP(www http.ResponseWriter, req *http.Request)
This is the bottom of the stack - at this point we check
- If the file is in the in-memory cache
- If the file is on disk
Also this is the standard server - only one location to check.
func (*StandardFileServer) SetNext ¶
func (hdlr *StandardFileServer) SetNext(next http.Handler)
normally identical
Click to show internal directories.
Click to hide internal directories.