Remove unused responseWriter struct
All checks were successful
CI / build (push) Successful in 30s

Address review feedback to remove dead code.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit was merged in pull request #19.
This commit is contained in:
2026-01-09 17:23:09 +01:00
parent 89efc9b41d
commit 7393778453

View File

@@ -1,7 +1,6 @@
package host
import (
"bytes"
"compress/gzip"
"fmt"
"io"
@@ -221,18 +220,3 @@ func (d *DevServer) ListenAndServe(addr string) error {
d.logger.Printf("Development server running on http://%s", addr)
return http.ListenAndServe(addr, d)
}
// ResponseWriter wraps http.ResponseWriter to capture the response
type responseWriter struct {
http.ResponseWriter
buf *bytes.Buffer
statusCode int
}
func (rw *responseWriter) WriteHeader(code int) {
rw.statusCode = code
}
func (rw *responseWriter) Write(b []byte) (int, error) {
return rw.buf.Write(b)
}