middleware

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Recoverer

func Recoverer(next http.Handler) http.Handler

func RequestLogger

func RequestLogger(next http.Handler) http.Handler

Types

type ResponseWrapper

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

func WrapResponseWriter

func WrapResponseWriter(w http.ResponseWriter) *ResponseWrapper

func (*ResponseWrapper) Status

func (w *ResponseWrapper) Status() int

func (*ResponseWrapper) Unwrap

func (w *ResponseWrapper) Unwrap() http.ResponseWriter

func (*ResponseWrapper) Write

func (w *ResponseWrapper) Write(b []byte) (int, error)

func (*ResponseWrapper) WriteHeader

func (w *ResponseWrapper) WriteHeader(code int)

Jump to

Keyboard shortcuts

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