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

Method Close

middleware/compress.go:367–372  ·  middleware/compress.go::compressResponseWriter.Close
()

Source from the content-addressed store, hash-verified

365}
366
367func (cw *compressResponseWriter) Close() error {
368 if c, ok := cw.writer().(io.WriteCloser); ok {
369 return c.Close()
370 }
371 return errors.New("chi/middleware: io.WriteCloser is unavailable on the writer")
372}
373
374func (cw *compressResponseWriter) Unwrap() http.ResponseWriter {
375 return cw.ResponseWriter

Callers 15

HandlerMethod · 0.95
TestMuxBasicFunction · 0.80
TestMuxMountsFunction · 0.80
TestMuxPlainFunction · 0.80
TestMuxTrailingSlashFunction · 0.80
TestMuxNestedNotFoundFunction · 0.80
TestMethodNotAllowedFunction · 0.80
TestMuxWithFunction · 0.80
TestRouterFromMuxWithFunction · 0.80

Calls 1

writerMethod · 0.95

Tested by 15

TestMuxBasicFunction · 0.64
TestMuxMountsFunction · 0.64
TestMuxPlainFunction · 0.64
TestMuxTrailingSlashFunction · 0.64
TestMuxNestedNotFoundFunction · 0.64
TestMethodNotAllowedFunction · 0.64
TestMuxWithFunction · 0.64
TestRouterFromMuxWithFunction · 0.64
TestMuxMiddlewareStackFunction · 0.64