Documentation ¶
Overview ¶
Package file implements a file server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is a structure to hold the context to serve error files.
func (Error) ServeError ¶
func (context Error) ServeError(writer http.ResponseWriter, code int) (servedContent bool)
ServeError serves the error file corresponding with the given status code.
func (Error) ServeMovedPermanently ¶
func (context Error) ServeMovedPermanently(writer http.ResponseWriter, location string)
ServeMovedPermanently serves "Moved Permanently" status.
Click to show internal directories.
Click to hide internal directories.