1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 10:27:06 +00:00

doc: minor

Former-commit-id: 649e2d673a834625d5f3e8703533ad1db2553aec
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-07-19 10:26:59 +03:00
parent c18106166b
commit 3faaf954bb
8 changed files with 20 additions and 10 deletions

View File

@@ -335,7 +335,10 @@ func (ctx *Context) ResponseWriter() ResponseWriter {
return ctx.writer
}
// ResetResponseWriter should change or upgrade the context's ResponseWriter.
// ResetResponseWriter sets a new ResponseWriter implementation
// to this Context to use as its writer.
// Note, to change the underline http.ResponseWriter use
// ctx.ResponseWriter().SetWriter(http.ResponseWRiter) instead.
func (ctx *Context) ResetResponseWriter(newResponseWriter ResponseWriter) {
ctx.writer = newResponseWriter
}