mirror of
https://github.com/kataras/iris.git
synced 2026-01-16 16:35:56 +00:00
add PartyFunc and gofmt -s -w . 🔷
Former-commit-id: a3809498a45140d691f3f235ad9cb25239d495a2
This commit is contained in:
@@ -41,6 +41,12 @@ type ResponseRecorder struct {
|
||||
|
||||
var _ ResponseWriter = &ResponseRecorder{}
|
||||
|
||||
// Naive returns the simple, underline and original http.ResponseWriter
|
||||
// that backends this response writer.
|
||||
func (w *ResponseRecorder) Naive() http.ResponseWriter {
|
||||
return w.ResponseWriter.Naive()
|
||||
}
|
||||
|
||||
// BeginRecord accepts its parent ResponseWriter and
|
||||
// prepares itself, the response recorder, to record and send response to the client.
|
||||
func (w *ResponseRecorder) BeginRecord(underline ResponseWriter) {
|
||||
|
||||
@@ -28,6 +28,10 @@ type ResponseWriter interface {
|
||||
http.CloseNotifier
|
||||
http.Pusher
|
||||
|
||||
// Naive returns the simple, underline and original http.ResponseWriter
|
||||
// that backends this response writer.
|
||||
Naive() http.ResponseWriter
|
||||
|
||||
// BeginResponse receives an http.ResponseWriter
|
||||
// and initialize or reset the response writer's field's values.
|
||||
BeginResponse(http.ResponseWriter)
|
||||
@@ -117,6 +121,12 @@ const (
|
||||
StatusCodeWritten = 0
|
||||
)
|
||||
|
||||
// Naive returns the simple, underline and original http.ResponseWriter
|
||||
// that backends this response writer.
|
||||
func (w *responseWriter) Naive() http.ResponseWriter {
|
||||
return w.ResponseWriter
|
||||
}
|
||||
|
||||
// BeginResponse receives an http.ResponseWriter
|
||||
// and initialize or reset the response writer's field's values.
|
||||
func (w *responseWriter) BeginResponse(underline http.ResponseWriter) {
|
||||
|
||||
Reference in New Issue
Block a user