handler/meter: add HTTPHandlerFunc method
Some checks failed
coverage / build (push) Has been cancelled
test / test (push) Has been cancelled

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2025-08-04 21:48:24 +03:00
parent 4ece8b1d18
commit 2bdfa5ab1c

View File

@@ -99,6 +99,8 @@ func (h *Handler) HTTPHandlerFunc(w http.ResponseWriter, r *http.Request) {
defer gz.Close()
wr = gz
} else {
wr = w
}
if err := h.Options.Meter.Write(w, h.Options.MeterOptions...); err != nil {