net/http: document that cancelling a request unblocks reads on the response body #26947
Labels
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If you create a
*http.Request
, set a cancellable context on it, do the request and then begin reading the body, if you cancel the original context on the request, the read on the body will unblock. This is not documented anywhere afaik but is extremely useful behaviour.The text was updated successfully, but these errors were encountered: