middleware

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GzipMiddleware

func GzipMiddleware(next http.Handler) http.Handler

Compresses HTTP responses for clients that support it.

func SignatureVerificationMiddleware added in v1.2.0

func SignatureVerificationMiddleware(next http.Handler) http.Handler

Types

type GzipResponseWriter

type GzipResponseWriter struct {
	http.ResponseWriter
	Writer *gzip.Writer
}

GzipResponseWriter is a custom http.ResponseWriter that compresses responses with GZip.

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