zipfs

package
v0.0.0-...-d1a9080 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2021 License: AGPL-3.0 Imports: 10 Imported by: 0

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

func (f HTTPZipFile) GetEntry(name string, fd *os.File, size int64) (*zip.File, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL