bodyWriter now implements http.Flusher and http.Hijacker

This commit is contained in:
Samuel Berthe
2024-01-20 19:13:39 +01:00
parent 96c9813d0e
commit 083d462db9
+5
View File
@@ -3,10 +3,15 @@ package sloggin
import (
"bytes"
"io"
"net/http"
"github.com/gin-gonic/gin"
)
var _ http.ResponseWriter = (*bodyWriter)(nil)
var _ http.Flusher = (*bodyWriter)(nil)
var _ http.Hijacker = (*bodyWriter)(nil)
type bodyWriter struct {
gin.ResponseWriter
body *bytes.Buffer