Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHeaders ¶ added in v0.5.0
func AddHeaders(headers HeaderList, next http.Handler) http.Handler
Types ¶
type Handler ¶
Handler handles requests for the server
func NewHandler ¶
NewHandler returns a Handler created by the slice of locations
type HeaderList ¶ added in v0.5.0
type HeaderList []Header
func (*HeaderList) Set ¶ added in v0.5.0
func (h *HeaderList) Set(value string) error
func (*HeaderList) String ¶ added in v0.5.0
func (h *HeaderList) String() string
type ZipHandler ¶
type ZipHandler struct {
// contains filtered or unexported fields
}
ZipHandler implements http.Handler interface to serve contents of a zip file
func NewZipHandler ¶
func NewZipHandler(zipfile string) *ZipHandler
func (*ZipHandler) GetFile ¶
func (z *ZipHandler) GetFile(w http.ResponseWriter, r *http.Request)
GetFile acts as http.HandleFunc to serve contents of a zip file
Click to show internal directories.
Click to hide internal directories.