Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compression ¶
type Compression struct {
// contains filtered or unexported fields
}
func New ¶
func New(log loggers.Logger, adminApp GzipControl) *Compression
func (*Compression) Gzip ¶
func (s *Compression) Gzip(next http.HandlerFunc) http.HandlerFunc
Gzip wraps a HandlerFunc to compress responses when possible
type GzipControl ¶
type GzipControl interface {
GzipDisabled() bool
}
Click to show internal directories.
Click to hide internal directories.