feat: crl support, metrics

This commit is contained in:
Florian Bauer
2025-01-21 08:33:49 +01:00
parent f0332b21b2
commit 8844427927
9 changed files with 207 additions and 46 deletions

View File

@@ -0,0 +1,19 @@
package metrics
import "net/http"
func newResponseWriter(w http.ResponseWriter) *responseWriter {
return &responseWriter{w, http.StatusOK}
}
func (rw *responseWriter) WriteHeader(code int) {
rw.statusCode = code
if code != http.StatusOK {
rw.ResponseWriter.WriteHeader(code)
}
}
type responseWriter struct {
http.ResponseWriter
statusCode int
}