MCPcopy
hub / github.com/caddyserver/caddy / newCloseOnCloseReader

Function newCloseOnCloseReader

modules/caddyhttp/reverseproxy/retries_test.go:43–45  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

41}
42
43func newCloseOnCloseReader(s string) *closeOnCloseReader {
44 return &closeOnCloseReader{r: strings.NewReader(s)}
45}
46
47func (c *closeOnCloseReader) Read(p []byte) (int, error) {
48 c.mu.Lock()

Callers 2

TestDialErrorBodyRetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected