mirror of
https://github.com/kataras/iris.git
synced 2025-12-28 07:17:06 +00:00
Vol2 : https://github.com/kataras/iris/issues/717, worked
Former-commit-id: f4a19eb83a28279782b8a75ee298b38c9e180157
This commit is contained in:
@@ -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{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user