reprogl
15 строк · 278.0 Байт
1package middlewares2
3import (4"net/http"5
6pkghttp "xelbot.com/reprogl/http"7)
8
9func ResponseWrapper(next http.Handler) http.Handler {10return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {11lrw := pkghttp.CreateLogResponse(w)12
13next.ServeHTTP(lrw, r)14})15}
16