MCPcopy
hub / github.com/monasticacademy/httptap / TeeReadCloser

Function TeeReadCloser

http.go:89–91  ·  view source on GitHub ↗

TeeReadCloser returns a Reader that writes to w what it reads from r, just like io.TeeReader, and also implements Close

(r io.ReadCloser, w io.Writer)

Source from the content-addressed store, hash-verified

87// TeeReadCloser returns a Reader that writes to w what it reads from r,
88// just like io.TeeReader, and also implements Close
89func TeeReadCloser(r io.ReadCloser, w io.Writer) io.ReadCloser {
90 return &teeReadCloser{r, w}
91}
92
93type teeReadCloser struct {
94 r io.ReadCloser

Callers 1

proxyHTTPSchemeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected