1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-28 07:17:06 +00:00
Former-commit-id: f4a19eb83a28279782b8a75ee298b38c9e180157
This commit is contained in:
kataras
2017-08-12 08:49:00 +03:00
parent 71af9d7f45
commit e00cf383a2
6 changed files with 119 additions and 52 deletions

View File

@@ -767,6 +767,13 @@ var LimitRequestBodySize = func(maxRequestBodySizeBytes int64) Handler {
}
}
// Gzip is a middleware which enables writing
// using gzip compression, if client supports.
var Gzip = func(ctx Context) {
ctx.Gzip(true)
ctx.Next()
}
// Map is just a shortcut of the map[string]interface{}.
type Map map[string]interface{}