handlers

package
v0.0.0-...-0f53290 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cache

func Cache(logger *slog.Logger, root, cacheControl string) http.Handler

Create a file handler without memory copy of file. All 20 seconds, update the index.

func File

func File(logger *slog.Logger, root, cacheControl string) http.Handler

func LogRequest

func LogRequest(logger *slog.Logger, status int, r *http.Request)

func Redirect

func Redirect(logger *slog.Logger, url, _ string) http.Handler

func ReverseProxy

func ReverseProxy(logger *slog.Logger, rawURL, _ string) http.Handler

func Secure

func Secure(logger *slog.Logger, _, _ string) http.Handler

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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