encoding

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2014 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package encoding contains Content-Encoding related filters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gzip

func Gzip(next http.Handler) http.Handler

Gzip calls the next handler with a response writer that will compress the outbound writes. This filter assumes a chunked transfer encoding, so do not add a Content-Length header in the terminal handler.

If the request does not accept a gzip encoding, this filter has no effect.

Types

This section is empty.

Jump to

Keyboard shortcuts

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