(body ReadSeekCloser, totalSize int64, cb CopyCallback)
| 24 | } |
| 25 | |
| 26 | func NewBodyWithCallback(body ReadSeekCloser, totalSize int64, cb CopyCallback) *BodyWithCallback { |
| 27 | return &BodyWithCallback{ |
| 28 | c: cb, |
| 29 | totalSize: totalSize, |
| 30 | ReadSeekCloser: body, |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | // Read wraps the underlying Reader's "Read" method. It also captures the number |
| 35 | // of bytes read, and calls the callback. |
no outgoing calls
no test coverage detected