Method: Net::HTTP.get_print
- Defined in:
- lib/net/http.rb
.get_print(uri_or_host, path = nil, port = nil) ⇒ Object
438 439 440 441 442 443 444 445 |
# File 'lib/net/http.rb', line 438 def HTTP.get_print(uri_or_host, path = nil, port = nil) get_response(uri_or_host, path, port) {|res| res.read_body do |chunk| $stdout.print chunk end } nil end |