Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Net::HTTPGenericRequest#send_request_with_body
send_request_with_body(sock, ver, path, body)
lib/net/http/generic_request.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/net/http/generic_request.rb, line 260
def send_request_with_body(sock, ver, path, body)
self.content_length = body.bytesize
delete 'Transfer-Encoding'
supply_default_content_type
write_header sock, ver, path
wait_for_continue sock, ver if sock.continue_timeout
sock.write body
end
No documentation available
See also
#response_body_permitted?
#send_request_with_body_data
#request_body_permitted?
#send_request_with_body_stream
also in
3.4 · 3.2 · 3.1 · 3.0