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 ContentTypeOptions(handler http.Handler) http.Handler
- func FrameOptions(handler http.Handler) http.Handler
- func Gzip(handler http.Handler) http.Handler
- func NoCache(handler http.Handler) http.Handler
- type Chain
- type ContentTypeWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheMiddleware ¶
func CacheMiddleware(suffixes ...string) mux.MiddlewareFunc
Types ¶
type Chain ¶
type Chain []mux.MiddlewareFunc
type ContentTypeWriter ¶
type ContentTypeWriter struct {
http.ResponseWriter
}
func (ContentTypeWriter) Hijack ¶
func (c ContentTypeWriter) Hijack() (net.Conn, *bufio.ReadWriter, error)
Click to show internal directories.
Click to hide internal directories.