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