method
send_request_with_body
v2_6_3 -
Show latest stable
- Class:
Net::HTTPGenericRequest
send_request_with_body(sock, ver, path, body)private
No documentation available.
# File lib/net/http/generic_request.rb, line 183
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