mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 04:17:03 +00:00
add a new 'Context.GzipReader(bool) method and 'iris.GzipReader' middleware as requested at #1528
Former-commit-id: 7665545069bf1784d17a9db1e5f9f5f8df4b0c43
This commit is contained in:
@@ -12,6 +12,9 @@ func main() {
|
||||
|
||||
func newApp() *iris.Application {
|
||||
app := iris.New()
|
||||
// To automatically decompress using gzip:
|
||||
// app.Use(iris.GzipReader)
|
||||
|
||||
app.Use(setAllowedResponses)
|
||||
|
||||
app.Post("/", readBody)
|
||||
|
||||
Reference in New Issue
Block a user