= private = protected
reading_body(sock, reqmethodallowbody)
body
# File lib/net/http.rb, line 2667 def reading_body(sock, reqmethodallowbody) #:nodoc: internal use only @socket = sock @body_exist = reqmethodallowbody && self.class.body_permitted? begin yield self.body # ensure to read body ensure @socket = nil end end