package
Version:
v1.3.0
Opens a new window with list of versions in this module.
Published: Jul 1, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func InitGzip(minLength, compressLevel int, methods []string)
-
func ParseEncoding(r *http.Request) string
-
func WriteBody(encoding string, writer io.Writer, content []byte) (bool, string, error)
-
func WriteFile(encoding string, writer io.Writer, file http.File) (bool, string, error)
func InitGzip(minLength, compressLevel int, methods []string)
WriteBody reads writes content to writer by the specific encoding(gzip/deflate)
WriteFile reads from file and writes to writer by the specific encoding(gzip/deflate)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.