handler

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachHealthHandler

func AttachHealthHandler(m *http.ServeMux)

func AttachStaticDirHandler

func AttachStaticDirHandler(m *http.ServeMux, directory string, listable bool, cache string)

func AttachStaticFSHandler

func AttachStaticFSHandler(m *http.ServeMux, fs fs.FS, listable bool, cache string)

func AttachStaticHTTPFSHandler added in v1.2.6

func AttachStaticHTTPFSHandler(m *http.ServeMux, fs http.FileSystem, listable bool, cache string)

func CacheControl added in v1.2.8

func CacheControl(h http.Handler, cc string) http.Handler

func Compress added in v1.3.1

func Compress(h http.Handler) http.Handler
func Header(h http.Handler, key, value string) http.Handler

func Health

func Health() http.Handler

func Log

func Log(h http.Handler) http.Handler

func StaticDir

func StaticDir(directory string, listable bool) http.Handler

func StaticFS added in v1.2.6

func StaticFS(filesystem http.FileSystem, listable bool) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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