diff options
Diffstat (limited to 'plugins/gzip/plugin.go')
-rw-r--r-- | plugins/gzip/plugin.go | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/plugins/gzip/plugin.go b/plugins/gzip/plugin.go deleted file mode 100644 index 05f1eb63..00000000 --- a/plugins/gzip/plugin.go +++ /dev/null @@ -1,28 +0,0 @@ -package gzip - -import ( - "net/http" - - "github.com/klauspost/compress/gzhttp" -) - -const PluginName = "gzip" - -type Plugin struct{} - -func (g *Plugin) Init() error { - return nil -} - -func (g *Plugin) Middleware(next http.Handler) http.Handler { - return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - gzhttp.GzipHandler(next).ServeHTTP(w, r) - }) -} - -// Available interface implementation -func (g *Plugin) Available() {} - -func (g *Plugin) Name() string { - return PluginName -} |