responsewriter

package
v2.2.9+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: Apache-2.0 Imports: 9 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

Gzip creates a gzip writer if gzip encoding is accepted.

func NoCache

func NoCache(handler http.Handler) http.Handler

Types

type ContentTypeWriter

type ContentTypeWriter struct {
	http.ResponseWriter
}

func (ContentTypeWriter) Hijack

func (c ContentTypeWriter) Hijack() (net.Conn, *bufio.ReadWriter, error)

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