Preview Ruby 4.1 is a preview. It can change before the final release. 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-4.1.0-preview1/lib/net/http.rb, line 2475
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_query
#set_debug_output
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0