Discover Packages
sketch.dev
loop
server
gzhandler
package
Version:
v0.0.33
Opens a new window with list of versions in this module.
Published: Aug 1, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package gzhandler provides an HTTP file server implementation that serves pre-compressed files
when available to clients that support gzip encoding.
New creates a handler that serves HTTP requests
with the contents of the file system rooted at root and uses pre-compressed
.gz files when available, with appropriate headers.
Handler is an http.Handler that checks for pre-compressed files
and serves them with appropriate headers when available.
ServeHTTP serves a file with special handling for pre-compressed .gz files
Source Files
¶
Click to show internal directories.
Click to hide internal directories.