gzip

package
v0.0.0-...-6f8804b Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2016 License: MIT Imports: 6 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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