MCPcopy Create free account
hub / github.com/corestoreio/pkg / WrapPiped

Function WrapPiped

net/responseproxy/pipe_writer.go:43–69  ·  view source on GitHub ↗

WrapPiped wraps an http.ResponseWriter, returning a proxy which pipes the writes to your ReaderFrom. You must call "defer Close()" to quite the internal goroutine.

(iorf io.ReaderFrom, w http.ResponseWriter)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

CloseMethod · 0.65
ReadFromMethod · 0.45
DoneMethod · 0.45

Tested by

no test coverage detected