Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Net::HTTPSession#send_entity
send_entity(path, data, initheader, dest, type, &block)
lib/net/http.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/net/http.rb, line 2390
def send_entity(path, data, initheader, dest, type, &block)
res = nil
request(type.new(path, initheader), data) {|r|
r.read_body dest, &block
res = r
}
res
end
Executes a request which uses a representation and returns its body.