middleware

package
v0.87.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheControlMiddleware

func CacheControlMiddleware(next http.Handler) http.Handler

func GitHubStarsMiddleware

func GitHubStarsMiddleware(next http.Handler) http.Handler

GitHubStarsMiddleware fetches and caches GitHub stars count

func IsHtmxRequest

func IsHtmxRequest(r *http.Request) bool

IsHtmxRequest checks if the request is from HTMX

func WithURLPathValue

func WithURLPathValue(next http.Handler) http.Handler

WithURLPathValue adds the current URL's path to the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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