summaryrefslogtreecommitdiff
path: root/plugins/gzip/plugin.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gzip/plugin.go')
-rw-r--r--plugins/gzip/plugin.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/plugins/gzip/plugin.go b/plugins/gzip/plugin.go
deleted file mode 100644
index e5b9e4f5..00000000
--- a/plugins/gzip/plugin.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package gzip
-
-import (
- "net/http"
-
- "github.com/NYTimes/gziphandler"
-)
-
-const PluginName = "gzip"
-
-type Gzip struct{}
-
-func (g *Gzip) Init() error {
- return nil
-}
-
-func (g *Gzip) Middleware(next http.Handler) http.HandlerFunc {
- return func(w http.ResponseWriter, r *http.Request) {
- gziphandler.GzipHandler(next).ServeHTTP(w, r)
- }
-}
-
-func (g *Gzip) Name() string {
- return PluginName
-}