Documentation ¶
Overview ¶
Package httputil implements HTTP utility functions for http.FileSystem.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileHandler ¶
type FileHandler struct {
File http.FileSystem
}
FileHandler is an http.Handler that serves the root of File, which is expected to be a normal file (not a directory).
func (FileHandler) ServeHTTP ¶
func (h FileHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.