mirror of
https://github.com/rclone/rclone.git
synced 2026-09-13 06:35:59 -04:00
NoCloserNotify hides the Close method of the reader passed in like NoCloser, but calls a notify function (once only) when the returned body is closed. This lets callers of http.NewRequest find out when the transport has finished with a request body, as it is documented to possibly close it in a different goroutine after the request has finished.