diff options
author | Valery Piashchynski <[email protected]> | 2020-12-21 19:42:23 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-21 19:42:23 +0300 |
commit | ee8b4075c0f836d698d1ae505c87c17147de447a (patch) | |
tree | 531d980e5bfb94ee39b03952a97e0445f7955409 /plugins/gzip/plugin.go | |
parent | 0ad45031047bb479e06ce0a0f496c6db9b2641c9 (diff) |
Move plugins to the roadrunner-plugins repository
Diffstat (limited to 'plugins/gzip/plugin.go')
-rw-r--r-- | plugins/gzip/plugin.go | 25 |
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 -} |