Documentation ¶ Index ¶ func DrainReader(reader io.Reader) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DrainReader ¶ func DrainReader(reader io.Reader) error DrainReader reads and discards the remaining part in reader (for example response body data) In case of HTTP this ensured that the http connection could be reused for another request if the keepalive http connection behavior is enabled. Types ¶ This section is empty. Source Files ¶ iosafety.go Click to show internal directories. Click to hide internal directories.