mirror of
https://github.com/kataras/iris.git
synced 2026-01-10 05:25:58 +00:00
Add option for Gzip again, I removed it after v3 but seems users wants it back
This commit is contained in:
@@ -94,6 +94,11 @@ type (
|
||||
// defaults to "UTF-8"
|
||||
Charset string
|
||||
|
||||
// Gzip enables gzip compression on your Render actions, this includes any type of render, templates and pure/raw content
|
||||
// If you don't want to enable it globaly, you could just use the third parameter on context.Render("myfileOrResponse", structBinding{}, iris.RenderOptions{"gzip": true})
|
||||
// defaults to false
|
||||
Gzip bool
|
||||
|
||||
// Sessions contains the configs for sessions
|
||||
Sessions Sessions
|
||||
|
||||
@@ -114,6 +119,7 @@ func Default() Iris {
|
||||
DisableTemplateEngines: false,
|
||||
IsDevelopment: false,
|
||||
Charset: DefaultCharset,
|
||||
Gzip: false,
|
||||
ProfilePath: "",
|
||||
Sessions: DefaultSessions(),
|
||||
Websocket: DefaultWebsocket(),
|
||||
|
||||
Reference in New Issue
Block a user