method
send_request
v2_6_3 -
Show latest stable
- Class:
Net::HTTP
send_request(name, path, data = nil, header = nil)public
Sends an HTTP request to the HTTP server. Also sends a DATA string if data is given.
Returns a Net::HTTPResponse object.
This method never raises Net::* exceptions.
response = http.send_request('GET', '/index.html') puts response.body