Versions in this module Expand all Collapse all v2 deprecated v2.1.1 Sep 7, 2023 Changes in this version + const RequestIDKey + var DefaultLogger = RequestLogger(&DefaultLogFormatter{ ... }) + var LogEntryCtxKey = &contextKey + func CloseNotify(next http.Handler) http.Handler + func Compress(level int, types ...string) func(next http.Handler) http.Handler + func DefaultCompress(next http.Handler) http.Handler + func GetReqID(ctx context.Context) string + func Heartbeat(endpoint string) func(http.Handler) http.Handler + func Logger(next http.Handler) http.Handler + func NextRequestID() uint64 + func NoCache(h http.Handler) http.Handler + func Profiler() http.Handler + func RealIP(h http.Handler) http.Handler + func Recoverer(next http.Handler) http.Handler + func RedirectSlashes(next http.Handler) http.Handler + func RequestID(next http.Handler) http.Handler + func RequestLogger(f LogFormatter) func(next http.Handler) http.Handler + func StripSlashes(next http.Handler) http.Handler + func Throttle(limit int) func(http.Handler) http.Handler + func ThrottleBacklog(limit int, backlogLimit int, backlogTimeout time.Duration) func(http.Handler) http.Handler + func Timeout(timeout time.Duration) func(next http.Handler) http.Handler + func WithLogEntry(r *http.Request, entry LogEntry) *http.Request + func WithValue(key interface{}, val interface{}) func(next http.Handler) http.Handler + type DefaultLogFormatter struct + Logger *log.Logger + func (l *DefaultLogFormatter) NewLogEntry(r *http.Request) LogEntry + type LogEntry interface + Panic func(v interface{}, stack []byte) + Write func(status, bytes int, elapsed time.Duration) + func GetLogEntry(r *http.Request) LogEntry + type LogFormatter interface + NewLogEntry func(r *http.Request) LogEntry + type WrapResponseWriter interface + BytesWritten func() int + Status func() int + Tee func(io.Writer) + Unwrap func() http.ResponseWriter + func NewWrapResponseWriter(w http.ResponseWriter, protoMajor int) WrapResponseWriter Other modules containing this package github.com/go-chi/chi github.com/go-chi/chi/v3 github.com/go-chi/chi/v4 github.com/go-chi/chi/v5