mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
Update to version 8.4.5 | Read https://github.com/kataras/iris/blob/master/HISTORY.md#fr-06-october-2017--v845 for more.
Former-commit-id: 4e30bf6a74acb7d463c7fcf1e9e08ca3147117a7
This commit is contained in:
@@ -221,6 +221,12 @@ func (c *Controller) Write(contents []byte) (int, error) {
|
||||
return c.Ctx.ResponseWriter().Write(contents)
|
||||
}
|
||||
|
||||
// Writef formats according to a format specifier and writes to the response.
|
||||
func (c *Controller) Writef(format string, a ...interface{}) (int, error) {
|
||||
c.tryWriteHeaders()
|
||||
return c.Ctx.ResponseWriter().Writef(format, a...)
|
||||
}
|
||||
|
||||
// BeginRequest starts the main controller
|
||||
// it initialize the Ctx and other fields.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user