caddygzip

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 6 Imported by: 4

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

func (Gzip) AcceptEncoding() string

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

func (g Gzip) NewEncoder() encode.Encoder

NewEncoder returns a new gzip writer.

func (*Gzip) Provision

func (g *Gzip) Provision(ctx caddy.Context) error

Provision provisions g's configuration.

func (*Gzip) UnmarshalCaddyfile

func (g *Gzip) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile sets up the handler from Caddyfile tokens.

func (Gzip) Validate

func (g Gzip) Validate() error

Validate validates g's configuration.

type GzipPrecompressed added in v2.4.0

type GzipPrecompressed struct {
	Gzip
}

GzipPrecompressed provides the file extension for files precompressed with gzip encoding.

func (GzipPrecompressed) CaddyModule added in v2.4.0

func (GzipPrecompressed) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (GzipPrecompressed) Suffix added in v2.4.0

func (GzipPrecompressed) Suffix() string

Suffix returns the filename suffix of precompressed files.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL