I have net/http handlers that have defer req.Body.Close() in each on web server side.
net/http
defer req.Body.Close()
What is the correct place to put this in? Should I pu
A request body does not need to be closed in the handler. From the http.Request documentation
// The Server will close the request body. The ServeHTTP // Handler does not need to.