fog/cmd/api/wrappers.go

14 lines
224 B
Go
Raw Permalink Normal View History

2024-12-30 06:29:34 +00:00
package main
import "net/http"
type wrappedResponseWriter struct {
http.ResponseWriter
statusCode int
}
func (w *wrappedResponseWriter) WriteHeader(code int) {
w.statusCode = code
w.ResponseWriter.WriteHeader(code)
}