responsewriter

package
v2.2.0-rc2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cache

func Cache(handler http.Handler, suffixes ...string) http.Handler

func CacheMiddleware

func CacheMiddleware(suffixes ...string) mux.MiddlewareFunc

func ContentType

func ContentType(handler http.Handler) http.Handler

func DenyFrameOptions

func DenyFrameOptions(handler http.Handler) http.Handler

func Gzip

func Gzip(handler http.Handler) http.Handler

func NoCache

func NoCache(handler http.Handler) http.Handler

Types

type ContentTypeWriter

type ContentTypeWriter struct {
	http.ResponseWriter
}

func (ContentTypeWriter) Write

func (c ContentTypeWriter) Write(b []byte) (int, error)

type MiddlewareChain

type MiddlewareChain struct {
	// contains filtered or unexported fields
}

func NewMiddlewareChain

func NewMiddlewareChain(middleWares ...mux.MiddlewareFunc) *MiddlewareChain

func (*MiddlewareChain) Handler

func (m *MiddlewareChain) Handler(handler http.Handler) http.Handler

Jump to

Keyboard shortcuts

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