added REST API and simple unit test - and compose starter, still WIP for integ test
This commit is contained in:
15
vendor/github.com/go-chi/chi/middleware/compress18.go
generated
vendored
Normal file
15
vendor/github.com/go-chi/chi/middleware/compress18.go
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// +build go1.8
|
||||
|
||||
package middleware
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func (w *maybeCompressResponseWriter) Push(target string, opts *http.PushOptions) error {
|
||||
if ps, ok := w.w.(http.Pusher); ok {
|
||||
return ps.Push(target, opts)
|
||||
}
|
||||
return errors.New("chi/middleware: http.Pusher is unavailable on the writer")
|
||||
}
|
||||
Reference in New Issue
Block a user