httpcompress

package
v0.0.0-...-8b8bd21 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: ISC Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(fn httprouter.Handle, force bool) httprouter.Handle

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