encoding

package module
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(opts ...Option) func(next http.Handler) http.Handler

Types

type Config

type Config struct {
	Disabled bool `cfg:"disabled"`
	// Encoding support [gzip], default is gzip.
	Encoding []string `cfg:"encoding"`
}

type Option

type Option func(*option)

func WithConfig

func WithConfig(cfg Config) Option

Jump to

Keyboard shortcuts

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