middleware

package
v0.0.0-...-5af0fa5 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: BSD-2-Clause Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeLogger

func MakeLogger() func(inner http.Handler) http.Handler

func MkMiddleware

func MkMiddleware(f func(w http.ResponseWriter, r *http.Request)) http.Handler

Types

type RWWrapper

type RWWrapper struct {
	http.ResponseWriter
	http.Hijacker
	// contains filtered or unexported fields
}

func (*RWWrapper) Write

func (r *RWWrapper) Write(p []byte) (int, error)

func (*RWWrapper) WriteHeader

func (r *RWWrapper) WriteHeader(status int)

Jump to

Keyboard shortcuts

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