Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Net::HTTP#send_entity
send_entity(path, data, initheader, dest, type, &block)
lib/net/http.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/net/http.rb, line 2318
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.
See also
#response_body_encoding=
#send_request
#request_post
#set_debug_output
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0