middleware

package
v0.0.1-tiedot Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2014 License: GPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	HEADER_X_AUTH_TOKEN     string = "X-AUTH-TOKEN"
	HEADER_X_API_VERSION    string = "X-API-VERSION"
	HEADER_X_REQUESTED_WITH string = "X-Requested-With"
)

Variables

This section is empty.

Functions

func CorsMiddleware

func CorsMiddleware(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)

func GzipContentTypeMiddleware

func GzipContentTypeMiddleware(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)

checks if files in gzricebox are already compressed skips compression for binary files compresses html content if client supports

Types

This section is empty.

Jump to

Keyboard shortcuts

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