feat(botfilter): add statusRecorder

This commit is contained in:
hoelee committed 2026-05-14 10:05:00 +08:00
1 parent 04fb522ce7
commit 94ceb04796
1 file changed
+7
+7
View File
@@ -98,3 +98,10 @@ func addressString(addr netip.Addr) string {
return addr.String()
}
// statusRecorder keeps downstream response capabilities available while
// recording the final status used for 404 scoring.
type statusRecorder struct {
http.ResponseWriter
status int
}