favicon

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxRedirectDepth = 5
)

Variables

This section is empty.

Functions

func GetFavIcon

func GetFavIcon(w http.ResponseWriter, req *http.Request)

GetFavIcon returns the favicon of the route

Returns:

  • 200 OK: if icon found
  • 400 Bad Request: if alias is empty or route is not HTTPRoute
  • 404 Not Found: if route or icon not found
  • 500 Internal Server Error: if internal error
  • others: depends on route handler response

func InitIconCache

func InitIconCache()

func PruneRouteIconCache

func PruneRouteIconCache(route route.HTTPRoute)

Types

This section is empty.

Jump to

Keyboard shortcuts

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