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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user