hm

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RequestMethod = map[string]uint32{
	"GET":    1,
	"POST":   2,
	"PUT":    3,
	"DELETE": 4,
}

Functions

func NewAccessLogger

func NewAccessLogger(log *logger.AccessLogger) func(next http.Handler) http.Handler

NewAccessLogger 访问日志中间件

Types

type HttpStatusResponseWriter

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

HttpStatusResponseWriter 它主要由中间件(例如访问日志记录器)使用

func (*HttpStatusResponseWriter) Flush added in v1.1.8

func (w *HttpStatusResponseWriter) Flush()

func (*HttpStatusResponseWriter) Hijack added in v1.1.8

func (*HttpStatusResponseWriter) Push added in v1.1.8

func (w *HttpStatusResponseWriter) Push(target string, opts *http.PushOptions) error

func (*HttpStatusResponseWriter) Write

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

func (*HttpStatusResponseWriter) WriteHeader

func (w *HttpStatusResponseWriter) WriteHeader(code int)

Jump to

Keyboard shortcuts

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