(target string, opts *http.PushOptions)
| 358 | } |
| 359 | |
| 360 | func (cw *compressResponseWriter) Push(target string, opts *http.PushOptions) error { |
| 361 | if ps, ok := cw.writer().(http.Pusher); ok { |
| 362 | return ps.Push(target, opts) |
| 363 | } |
| 364 | return errors.New("chi/middleware: http.Pusher is unavailable on the writer") |
| 365 | } |
| 366 | |
| 367 | func (cw *compressResponseWriter) Close() error { |
| 368 | if c, ok := cw.writer().(io.WriteCloser); ok { |