bodyWriter now implements http.Flusher and http.Hijacker
This commit is contained in:
@@ -3,10 +3,15 @@ package sloggin
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"io"
|
"io"
|
||||||
|
"net/http"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var _ http.ResponseWriter = (*bodyWriter)(nil)
|
||||||
|
var _ http.Flusher = (*bodyWriter)(nil)
|
||||||
|
var _ http.Hijacker = (*bodyWriter)(nil)
|
||||||
|
|
||||||
type bodyWriter struct {
|
type bodyWriter struct {
|
||||||
gin.ResponseWriter
|
gin.ResponseWriter
|
||||||
body *bytes.Buffer
|
body *bytes.Buffer
|
||||||
|
|||||||
Reference in New Issue
Block a user