![This 3 year old thread had an important dicussion about how and when to close a response.body [Do i need to read the body before close it?] How does it stand today? : This 3 year old thread had an important dicussion about how and when to close a response.body [Do i need to read the body before close it?] How does it stand today? :](https://external-preview.redd.it/p916ZIlznGz2FjbLlsEjy-n1af5aTrQ5BS-3hutCPnU.jpg?auto=webp&s=9ac829dae50acaeb43f72130f585b7e841f102f7)
This 3 year old thread had an important dicussion about how and when to close a response.body [Do i need to read the body before close it?] How does it stand today? :
![Is it necessary to close the Body in the http.Response object in golang? | by Andrii Kushch | Medium Is it necessary to close the Body in the http.Response object in golang? | by Andrii Kushch | Medium](https://miro.medium.com/v2/resize:fit:1400/1*dP4L2aM4KU8aQsqBGngC_Q.png)
Is it necessary to close the Body in the http.Response object in golang? | by Andrii Kushch | Medium
net/http: HTTP/2 response body Close method sometimes returns spurious context cancelation error (1.17.3 regression) · Issue #49366 · golang/go · GitHub
![GitHub - timakin/bodyclose: Static Analyzer: checks whether HTTP response body is closed and a re-use of TCP connection is not blocked. : r/golang GitHub - timakin/bodyclose: Static Analyzer: checks whether HTTP response body is closed and a re-use of TCP connection is not blocked. : r/golang](https://external-preview.redd.it/ufjfmZb6V02X097sfo9ExcjkbNQ4DDDSz0V3reB5_qo.jpg?width=640&crop=smart&auto=webp&s=9af4edca6a646efe583231a52e7d592a1e23c2b3)