Documentation ¶
Index ¶
- func Cache(handler http.Handler, suffixes ...string) http.Handler
- func CacheMiddleware(suffixes ...string) mux.MiddlewareFunc
- func ContentType(handler http.Handler) http.Handler
- func DenyFrameOptions(handler http.Handler) http.Handler
- func Gzip(handler http.Handler) http.Handler
- func NoCache(handler http.Handler) http.Handler
- type ContentTypeWriter
- type MiddlewareChain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheMiddleware ¶
func CacheMiddleware(suffixes ...string) mux.MiddlewareFunc
Types ¶
type ContentTypeWriter ¶
type ContentTypeWriter struct {
http.ResponseWriter
}
func (ContentTypeWriter) Hijack ¶
func (c ContentTypeWriter) Hijack() (net.Conn, *bufio.ReadWriter, error)
type MiddlewareChain ¶
type MiddlewareChain struct {
// contains filtered or unexported fields
}
func NewMiddlewareChain ¶
func NewMiddlewareChain(middleWares ...mux.MiddlewareFunc) *MiddlewareChain
Click to show internal directories.
Click to hide internal directories.