= private = protected
reading_body(sock, reqmethodallowbody)
body
# File lib/net/http.rb, line 2132 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