Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gzip ¶
type Gzip struct {
Level int `json:"level,omitempty"`
}
Gzip can create gzip encoders.
func (Gzip) AcceptEncoding ¶
AcceptEncoding returns the name of the encoding as used in the Accept-Encoding request headers.
func (Gzip) CaddyModule ¶
func (Gzip) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (Gzip) NewEncoder ¶
NewEncoder returns a new gzip writer.
func (*Gzip) UnmarshalCaddyfile ¶
UnmarshalCaddyfile sets up the handler from Caddyfile tokens.
type GzipPrecompressed ¶
type GzipPrecompressed struct {
Gzip
}
GzipPrecompressed provides the file extension for files precompressed with gzip encoding.
func (GzipPrecompressed) CaddyModule ¶
func (GzipPrecompressed) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (GzipPrecompressed) Suffix ¶
func (GzipPrecompressed) Suffix() string
Suffix returns the filename suffix of precompressed files.
Click to show internal directories.
Click to hide internal directories.