Show

Results 4 comments of Show

"CustomRecoveryWithWriter" is a HandlerFunc. You can use custom HandlerFunc eg: I..RecoveryWithWriter(xxx) HandlerFunc{}. ### eg ```go // RecoveryLogger GIN Recovery logging to qelog func RecoveryLogger() gin.HandlerFunc { if logs.Qezap != nil...

bodySize, May be contained within the request header. Content-Length

tw.mu can't be locked http.ResponseWriter.Header() map. it can only lock you custom Writer struct. so the c.Data() and the tw.Header() timeout not mutex

when timeout, the header should be custom, or reference https://github.com/gin-contrib/timeout you can reference net/http/server.go line:3316 (go ver:1.17.7) implementation. ```go func (h *timeoutHandler) ServeHTTP(w ResponseWriter, r *Request) { ctx := h.testContext...