bodyWriter now implements http.Flusher and http.Hijacker
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user