middleware

package
v0.0.0-...-3bedab1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSecurityHeaders

func AddSecurityHeaders(w http.ResponseWriter)

func GzipMiddleware

func GzipMiddleware(next http.Handler) http.Handler

func ShouldGzip

func ShouldGzip(path string) bool

Types

type GzipResponseWriter

type GzipResponseWriter struct {
	io.Writer
	http.ResponseWriter
}

func (*GzipResponseWriter) Write

func (w *GzipResponseWriter) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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