compression

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressionMiddleware

type CompressionMiddleware struct {
	// contains filtered or unexported fields
}

func NewMiddleware

func NewMiddleware(options Options) *CompressionMiddleware

func (*CompressionMiddleware) ServeHTTP

func (m *CompressionMiddleware) ServeHTTP(ctx context.Context, c *app.RequestContext)

type Options

type Options struct {
	Level         int      `mapstructure:"level"`
	ExcludedPaths []string `mapstructure:"excluded_paths"`
}

Jump to

Keyboard shortcuts

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