server

package
v0.0.0-...-d10c4ce Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GzipMiddleware

func GzipMiddleware(next http.HandlerFunc) http.HandlerFunc

GzipMiddleware compresses the response body using GZIP if the client supports it. This can be used to save a lot of bandwidth at the cost of slightly more CPU usage.

func Router

func Router() *http.ServeMux

Router is the primary HTTP router for the server. It does NOT use the default global router from the http module.

func SlogMiddleware

func SlogMiddleware(next http.HandlerFunc) http.HandlerFunc

SlogMiddleware logs out information about incoming HTTP requests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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