1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-03 18:27:07 +00:00

add PartyFunc and gofmt -s -w . 🔷

Former-commit-id: a3809498a45140d691f3f235ad9cb25239d495a2
This commit is contained in:
hiveminded
2017-08-01 22:25:08 +03:00
parent 351f099ad6
commit 9143ccec6e
8 changed files with 73 additions and 8 deletions

View File

@@ -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) {