MCPcopy
hub / github.com/go-chi/chi / Push

Method Push

middleware/compress.go:360–365  ·  view source on GitHub ↗
(target string, opts *http.PushOptions)

Source from the content-addressed store, hash-verified

358}
359
360func (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
367func (cw *compressResponseWriter) Close() error {
368 if c, ok := cw.writer().(io.WriteCloser); ok {

Callers

nothing calls this directly

Calls 1

writerMethod · 0.95

Tested by

no test coverage detected