Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPZipFile ¶
type HTTPZipFile string
HTTPZipFile serves a zip file as an HTTP directory (without listing) It properly handles If-Modified-Since header and can serve the compressed content when deflate is in Accept-Encoding and the content is compressed with deflate.
func (HTTPZipFile) GetEntry ¶
GetEntry returns a zip.File instance for "name", or an error if the entry does not exist or is a directory.
func (HTTPZipFile) OpenZip ¶
func (f HTTPZipFile) OpenZip() (*os.File, int64, error)
OpenZip opens a file ready
func (HTTPZipFile) ServeHTTP ¶
func (f HTTPZipFile) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.