This should just take an io.Writer rather than a http.ResponseWriter.