Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrainBody ¶
func DrainBody(b io.ReadCloser) ([]byte, io.ReadCloser, error)
DrainBody reads all of b to memory and returns the bytes and a new ReadCloser. It returns an error if the initial slurp of all bytes fails. The returned bytes can be reused for retry support.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.