httpcompress

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(fn http.HandlerFunc, force bool) http.HandlerFunc

Middleware force - bool, whether or not to force Compression regardless of the sent headers.

Types

type CompressResponseWriter

type CompressResponseWriter struct {
	io.Writer
	http.ResponseWriter
}

CompressResponseWriter is a Struct for manipulating io writer

func (CompressResponseWriter) Write

func (res CompressResponseWriter) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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