Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReadCloser ¶
type ReadCloser struct {
// contains filtered or unexported fields
}
ReadCloser wraps an io.ReadCloser (request/response body) to count bytes read the reader. Optionally, an OnClose callback can be registered.
func NewReadCloser ¶
func NewReadCloser(wrapped io.ReadCloser, onClose OnClose) *ReadCloser
func (*ReadCloser) Bytes ¶
func (w *ReadCloser) Bytes() int64
func (*ReadCloser) Close ¶
func (w *ReadCloser) Close() error
Click to show internal directories.
Click to hide internal directories.