Discard response body in Go http request
....
io.Copy(ioutil.Discard, resp.Body)
defer resp.Body.Close()
....
Written by josh bowles
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Http
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#