gzip

package
v0.0.0-...-c4b3bb8 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package gzip implements a gzip compression handler middleware for Negroni.

Index

Constants

View Source
const (
	BestCompression    = gzip.BestCompression
	BestSpeed          = gzip.BestSpeed
	DefaultCompression = gzip.DefaultCompression
	NoCompression      = gzip.NoCompression
)

These compression constants are copied from the compress/gzip package.

Variables

This section is empty.

Functions

func Gzip

func Gzip(level int) *handler

Gzip returns a handler which will handle the Gzip compression in ServeHTTP. Valid values for level are identical to those in the compress/gzip package.

func GzipWithOptions

func GzipWithOptions(level int, skipExtensions []string, cacheExtensions []string) *handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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