()
| 351 | } |
| 352 | |
| 353 | func (cw *compressResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) { |
| 354 | if hj, ok := cw.writer().(http.Hijacker); ok { |
| 355 | return hj.Hijack() |
| 356 | } |
| 357 | return nil, nil, errors.New("chi/middleware: http.Hijacker is unavailable on the writer") |
| 358 | } |
| 359 | |
| 360 | func (cw *compressResponseWriter) Push(target string, opts *http.PushOptions) error { |
| 361 | if ps, ok := cw.writer().(http.Pusher); ok { |