1
0
mirror of https://github.com/kataras/iris.git synced 2026-02-11 21:25:56 +00:00

.NET Core vs Iris MVC vs Iris (classic API with Handlers)

No need to format using Writef on benchmarks for a simple string value without dynamic text, just use the WriteString which is the correct function for these apps.


Former-commit-id: 896ec514570d533d8da91af3ad199fc4f823fe74
This commit is contained in:
kataras
2017-08-19 07:11:30 +03:00
parent ca4c66d5b4
commit 151e38d5c8
8 changed files with 32 additions and 24 deletions

View File

@@ -1452,7 +1452,6 @@ func (ctx *context) Write(rawBody []byte) (int, error) {
//
// Returns the number of bytes written and any write error encountered.
func (ctx *context) Writef(format string, a ...interface{}) (n int, err error) {
ctx.ContentType(contentTextHeaderValue)
return ctx.writer.Writef(format, a...)
}