handlerutils

package
v0.0.0-...-625be2c Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2013 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EtagMatch

func EtagMatch(w http.ResponseWriter, r *http.Request, contents []byte) bool

func HttpError

func HttpError(w http.ResponseWriter, error string, code int)

HttpError is a wrapper around http.Error. It resets the content-encoding field as well.

func SetGzipContentHeader

func SetGzipContentHeader(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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