caddyzstd

package
v2.4.5 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Zstd

type Zstd struct{}

Zstd can create Zstandard encoders.

func (Zstd) AcceptEncoding

func (Zstd) AcceptEncoding() string

AcceptEncoding returns the name of the encoding as used in the Accept-Encoding request headers.

func (Zstd) CaddyModule

func (Zstd) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (Zstd) NewEncoder

func (z Zstd) NewEncoder() encode.Encoder

NewEncoder returns a new gzip writer.

func (*Zstd) UnmarshalCaddyfile

func (z *Zstd) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile sets up the handler from Caddyfile tokens.

type ZstdPrecompressed added in v2.4.0

type ZstdPrecompressed struct {
	Zstd
}

ZstdPrecompressed provides the file extension for files precompressed with zstandard encoding.

func (ZstdPrecompressed) CaddyModule added in v2.4.0

func (ZstdPrecompressed) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (ZstdPrecompressed) Suffix added in v2.4.0

func (ZstdPrecompressed) 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