middleware

package module
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 12 Imported by: 6

Documentation

Index

Constants

View Source
const (
	LastModifiedHeader    = "Last-Modified"
	IfModifiedSinceHeader = "If-Modified-Since"
)

Variables

This section is empty.

Functions

func BasicHttpAuth

func BasicHttpAuth(next http.Handler, roles ...string) http.Handler

func ClearStaticContent added in v0.1.7

func ClearStaticContent()

func DeleteMethodOnly added in v0.1.1

func DeleteMethodOnly(next http.Handler) http.Handler

func GetMethodOnly

func GetMethodOnly(next http.Handler) http.Handler

func Gzip

func Gzip(next http.Handler) http.Handler

func IsNotModified added in v0.1.8

func IsNotModified(ifModifiedSince string, since int64) bool

func PatchMethodOnly added in v0.1.3

func PatchMethodOnly(next http.Handler) http.Handler

func PostMethodOnly added in v0.1.2

func PostMethodOnly(next http.Handler) http.Handler

func PutMethodOnly added in v0.1.1

func PutMethodOnly(next http.Handler) http.Handler

func SetPassword

func SetPassword(role string, pwd [32]byte)

func SetStaticContent added in v0.1.6

func SetStaticContent(path string, content []byte)

func SetUsername

func SetUsername(role string, usr [32]byte)

func Static added in v0.1.6

func Static(next http.Handler) 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